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
fix windows compilation
[simgrid.git]
/
src
/
xbt
/
xbt_sha.c
diff --git
a/src/xbt/xbt_sha.c
b/src/xbt/xbt_sha.c
index
e2973ca
..
aa3dd12
100644
(file)
--- a/
src/xbt/xbt_sha.c
+++ b/
src/xbt/xbt_sha.c
@@
-15,6
+15,7
@@
#include "xbt/sysdep.h"
#include "xbt/hash.h"
#include "xbt/sysdep.h"
#include "xbt/hash.h"
+#include <stdio.h> /* sprintf */
struct s_xbt_sha_ {
unsigned int hash[5];
struct s_xbt_sha_ {
unsigned int hash[5];
@@
-31,11
+32,8
@@
static void sha_calculate(xbt_sha_t sha);
/** @brief constructor */
xbt_sha_t xbt_sha_new(void)
{
/** @brief constructor */
xbt_sha_t xbt_sha_new(void)
{
- xbt_sha_t sha;
-
- sha = xbt_new(s_xbt_sha_t, 1);
+ xbt_sha_t sha = xbt_new(s_xbt_sha_t, 1);
xbt_sha_reset(sha);
xbt_sha_reset(sha);
-
return sha;
}
return sha;
}
@@
-177,7
+175,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)
{