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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot//simgrid/simgrid
[simgrid.git]
/
include
/
xbt
/
sysdep.h
diff --git
a/include/xbt/sysdep.h
b/include/xbt/sysdep.h
index
282eba8
..
d05639b
100644
(file)
--- a/
include/xbt/sysdep.h
+++ b/
include/xbt/sysdep.h
@@
-95,8
+95,7
@@
void *xbt_malloc(size_t n)
res = malloc(n);
if (!res)
res = malloc(n);
if (!res)
- xbt_die(bprintf("Memory allocation of %lu bytes failed",
- (unsigned long)n));
+ xbt_die("Memory allocation of %lu bytes failed", (unsigned long)n);
return res;
}
return res;
}
@@
-109,8
+108,7
@@
void *xbt_malloc0(size_t n)
//if (n==0) xbt_die("calloc(0) is not portable");
res = calloc(n, 1);
if (!res)
//if (n==0) xbt_die("calloc(0) is not portable");
res = calloc(n, 1);
if (!res)
- xbt_die(bprintf("Memory callocation of %lu bytes failed",
- (unsigned long)n));
+ xbt_die("Memory callocation of %lu bytes failed", (unsigned long)n);
return res;
}
return res;
}
@@
-125,8
+123,7
@@
void *xbt_realloc(void *p, size_t s)
if (p) {
res = realloc(p, s);
if (!res)
if (p) {
res = realloc(p, s);
if (!res)
- xbt_die(bprintf("memory (re)allocation of %lu bytes failed",
- (unsigned long)s));
+ xbt_die("memory (re)allocation of %lu bytes failed", (unsigned long)s);
} else {
res = xbt_malloc(s);
}
} else {
res = xbt_malloc(s);
}