A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
routing: rename and sort things
[simgrid.git]
/
src
/
xbt
/
xbt_sha.c
diff --git
a/src/xbt/xbt_sha.c
b/src/xbt/xbt_sha.c
index
6290cd9
..
d6223e2
100644
(file)
--- a/
src/xbt/xbt_sha.c
+++ b/
src/xbt/xbt_sha.c
@@
-58,7
+58,7
@@
void xbt_sha_reset(xbt_sha_t sha)
/* @brief Add some more data to the buffer */
void xbt_sha_feed(xbt_sha_t sha, const unsigned char *data, size_t len)
{
/* @brief Add some more data to the buffer */
void xbt_sha_feed(xbt_sha_t sha, const unsigned char *data, size_t len)
{
- int i;
+
unsigned
int i;
for (i = 0; i < len; i++) {
sha->buf[sha->blen / 4] <<= 8;
for (i = 0; i < len; i++) {
sha->buf[sha->blen / 4] <<= 8;
@@
-177,7
+177,7
@@
static void sha_calculate(xbt_sha_t sha)
/* ************* */
#ifdef SIMGRID_TEST
#include "xbt/hash.h"
/* ************* */
#ifdef SIMGRID_TEST
#include "xbt/hash.h"
-#include "portable.h" /* hexa_str */
+#include "
src/
portable.h" /* hexa_str */
static char *mycmp(const char *p1, const char *p2, size_t n)
{
static char *mycmp(const char *p1, const char *p2, size_t n)
{