changeset 1120:982a726b793b

remove fixup_null_alloc prototype
author Jim Meyering <jim@meyering.net>
date Sat, 15 Nov 1997 17:18:01 +0000
parents b92c5f461502
children 79c07458822b
files lib/xmalloc.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/xmalloc.c
+++ b/lib/xmalloc.c
@@ -48,7 +48,6 @@
 
 /* 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);
@@ -127,7 +126,7 @@
 
   p = calloc (n, s);
   if (p == 0)
-    p = fixup_null_alloc (n);
+    xalloc_fail ();
   return p;
 }