X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Falloc.c;h=a0c2fbac5bbf4a79648cb2663f1bcddc99855228;hb=cd7b08ad5e6bbec75e778acf008f84e1eb548154;hp=267bf2baec09c652807d24cae3a879f128c393c3;hpb=3a7fba81ceae5b049d0f7d671e9e3c3c43bbf703;p=pspp-builds.git diff --git a/src/alloc.c b/src/alloc.c index 267bf2ba..a0c2fbac 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -19,12 +19,10 @@ #include #include "alloc.h" -#include #include #include +#include "error.h" #include "str.h" - -static void out_of_memory (void); /* Public functions. */ @@ -106,11 +104,9 @@ xstrdup (const char *s) memcpy (t, s, size); return t; } - -/* Private functions. */ /* Report an out-of-memory condition and abort execution. */ -static void +void out_of_memory (void) { fprintf (stderr, "virtual memory exhausted\n");