summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-16 11:35:56 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-16 11:35:56 +0100
commit9715ba82aa4d256a43b3a166c88f3409b873eb32 (patch)
tree1be8655e62ea7d8abcf158f68c26165201c5e320
parentremoved unnecessary bx, by, bw variables (diff)
downloaddwm-9715ba82aa4d256a43b3a166c88f3409b873eb32.tar.gz
dwm-9715ba82aa4d256a43b3a166c88f3409b873eb32.zip
removed erealloc (not used)
-rw-r--r--dwm.h1
-rw-r--r--util.c9
2 files changed, 0 insertions, 10 deletions
diff --git a/dwm.h b/dwm.h
index 171cb80..781940a 100644
--- a/dwm.h
+++ b/dwm.h
@@ -143,7 +143,6 @@ extern void toggletag(Arg *arg); /* toggles c tags with arg's index */
143/* util.c */ 143/* util.c */
144extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ 144extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */
145extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ 145extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
146extern void *erealloc(void *ptr, unsigned int size); /* reallocates memory, exits on error */
147extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ 146extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */
148 147
149/* view.c */ 148/* view.c */
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;