diff options
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -15,9 +15,7 @@ | |||
| 15 | static void | 15 | static void |
| 16 | bad_malloc(unsigned int size) | 16 | bad_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 | } |
