about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--util.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/util.c b/util.c
index 99d7beb..2eb9eb2 100644
--- a/util.c
+++ b/util.c
@@ -9,14 +9,6 @@
 #include <sys/wait.h>
 #include <unistd.h>
 
-/* static */
-
-static void
-badmalloc(unsigned int size)
-{
-	eprint("fatal: could not malloc() %u bytes\n", size);
-}
-
 /* extern */
 
 void *
@@ -25,7 +17,7 @@ emallocz(unsigned int size)
 	void *res = calloc(1, size);
 
 	if(!res)
-		badmalloc(size);
+		eprint("fatal: could not malloc() %u bytes\n", size);
 	return res;
 }
 
@@ -45,7 +37,7 @@ erealloc(void *ptr, unsigned int size)
 {
 	void *res = realloc(ptr, size);
 	if(!res)
-		badmalloc(size);
+		eprint("fatal: could not malloc() %u bytes\n", size);
 	return res;
 }
 
blame/continuation4.mu?h=hlt&id=504292f6f1a283af39de305879b50f16d6180caa'>^
4a48bedc ^
4c513685 ^
01ce563d ^
58d918de ^
4c513685 ^

5059f32d ^
4c513685 ^

58d918de ^


5059f32d ^
dd660682 ^
4c513685 ^
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47