summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/util.c b/util.c
index 7d7cb1a..8b36a3f 100644
--- a/util.c
+++ b/util.c
@@ -29,15 +29,6 @@ eprint(const char *errstr, ...) {
29 exit(EXIT_FAILURE); 29 exit(EXIT_FAILURE);
30} 30}
31 31
32void *
33erealloc(void *ptr, unsigned int size) {
34 void *res = realloc(ptr, size);
35
36 if(!res)
37 eprint("fatal: could not malloc() %u bytes\n", size);
38 return res;
39}
40
41void 32void
42spawn(Arg *arg) { 33spawn(Arg *arg) {
43 static char *shell = NULL; 34 static char *shell = NULL;