Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/misc/bogosort/files/patch-xmalloc.c
16461 views
1
--- xmalloc.c.orig Wed Aug 11 15:25:47 2004
2
+++ xmalloc.c Wed Aug 11 15:26:35 2004
3
@@ -54,6 +54,8 @@
4
# define EXIT_FAILURE 1
5
#endif
6
7
+#include "system.h"
8
+
9
/* Prototypes for functions defined here. */
10
#if defined (__STDC__) && __STDC__
11
static VOID *fixup_null_alloc (size_t n);
12
@@ -67,12 +69,6 @@
13
/* Exit value when the requested amount of memory is not available.
14
The caller may set it to some other value. */
15
int xmalloc_exit_failure = EXIT_FAILURE;
16
-
17
-#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT)
18
-void error (int, int, const char *, ...);
19
-#else
20
-void error ();
21
-#endif
22
23
static VOID *
24
fixup_null_alloc (n)
25
26