Mercurial > dwm-meillo
comparison util.c @ 698:e1c8bef05e6e 3.1
removed erealloc (not used)
author | Anselm R. Garbe <arg@suckless.org> |
---|---|
date | Tue, 16 Jan 2007 11:35:56 +0100 |
parents | 1ed8c40dde36 |
children |
comparison
equal
deleted
inserted
replaced
697:4d12382fef8e | 698:e1c8bef05e6e |
---|---|
27 vfprintf(stderr, errstr, ap); | 27 vfprintf(stderr, errstr, ap); |
28 va_end(ap); | 28 va_end(ap); |
29 exit(EXIT_FAILURE); | 29 exit(EXIT_FAILURE); |
30 } | 30 } |
31 | 31 |
32 void * | |
33 erealloc(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 | |
41 void | 32 void |
42 spawn(Arg *arg) { | 33 spawn(Arg *arg) { |
43 static char *shell = NULL; | 34 static char *shell = NULL; |
44 | 35 |
45 if(!shell && !(shell = getenv("SHELL"))) | 36 if(!shell && !(shell = getenv("SHELL"))) |