projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(oatoi): declare arg to be const
[gnulib.git]
/
lib
/
xmalloc.c
diff --git
a/lib/xmalloc.c
b/lib/xmalloc.c
index
d2996a0
..
204469f
100644
(file)
--- a/
lib/xmalloc.c
+++ b/
lib/xmalloc.c
@@
-48,7
+48,6
@@
void free ();
/* Prototypes for functions defined here. */
#if defined (__STDC__) && __STDC__
/* Prototypes for functions defined here. */
#if defined (__STDC__) && __STDC__
-static void *fixup_null_alloc (size_t n);
void *xmalloc (size_t n);
void *xcalloc (size_t n, size_t s);
void *xrealloc (void *p, size_t n);
void *xmalloc (size_t n);
void *xcalloc (size_t n, size_t s);
void *xrealloc (void *p, size_t n);
@@
-127,7
+126,7
@@
xcalloc (n, s)
p = calloc (n, s);
if (p == 0)
p = calloc (n, s);
if (p == 0)
-
p = fixup_null_alloc (n
);
+
xalloc_fail (
);
return p;
}
return p;
}