summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-07-21 18:34:10 +0200
committerarg@10ksloc.org <unknown>2006-07-21 18:34:10 +0200
commit0464e42231199d7a6ea45e46cf7798f2b6cf972c (patch)
treea9fbd46c88b1f689572fdb3f93f0524e8ee23099 /util.c
parentsimplified main.c, switching back to single urxvt usage (diff)
downloaddwm-0464e42231199d7a6ea45e46cf7798f2b6cf972c.tar.gz
dwm-0464e42231199d7a6ea45e46cf7798f2b6cf972c.zip
some cleanups/fixes inspired by Jukka Salmi's feedback
Diffstat (limited to '')
-rw-r--r--util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util.c b/util.c
index 94590f9..6eb19b4 100644
--- a/util.c
+++ b/util.c
@@ -15,9 +15,7 @@
15static void 15static void
16bad_malloc(unsigned int size) 16bad_malloc(unsigned int size)
17{ 17{
18 fprintf(stderr, "fatal: could not malloc() %d bytes\n", 18 eprint("fatal: could not malloc() %u bytes\n", size);
19 (int) size);
20 exit(EXIT_FAILURE);
21} 19}
22 20
23/* extern */ 21/* extern */
@@ -58,7 +56,7 @@ spawn(Arg *arg)
58 fprintf(stderr, "dwm: execvp %s", argv[0]); 56 fprintf(stderr, "dwm: execvp %s", argv[0]);
59 perror(" failed"); 57 perror(" failed");
60 } 58 }
61 exit(EXIT_FAILURE); 59 exit(0);
62 } 60 }
63 wait(0); 61 wait(0);
64} 62}