summaryrefslogtreecommitdiffstats
path: root/devel/kdesdk3/files/patch-aa
blob: 2d65987e5766a8a882f31c9311b540f2be460122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- kbabel/common/libgettext/xmalloc.c.orig	Tue Aug 21 11:08:13 2001
+++ kbabel/common/libgettext/xmalloc.c	Tue Aug 21 11:09:28 2001
@@ -26,6 +26,7 @@
 #endif
 
 #include <sys/types.h>
+#include <err.h>
 
 #if STDC_HEADERS
 # include <stdlib.h>
@@ -61,7 +62,6 @@
    The caller may set it to some other value.  */
 int xmalloc_exit_failure = EXIT_FAILURE;
 
-void error (int, int, const char *, ...);
 
 static VOID *
 fixup_null_alloc (n)
@@ -73,7 +73,7 @@
   if (n == 0)
     p = malloc ((size_t) 1);
   if (p == 0)
-    error (xmalloc_exit_failure, 0, _("Memory exhausted"));
+    err (xmalloc_exit_failure, "Memory exhausted");
   return p;
 }
 
OpenPOWER on IntegriCloud