dwm-meillo
diff util.c @ 92:4bee0aa5b286
using EXIT_stuff in exit() now
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 18 Jul 2006 08:18:54 +0200 |
parents | 052fe7498930 |
children | 61490330e90a |
line diff
1.1 --- a/util.c Mon Jul 17 18:49:13 2006 +0200 1.2 +++ b/util.c Tue Jul 18 08:18:54 2006 +0200 1.3 @@ -17,7 +17,7 @@ 1.4 { 1.5 fprintf(stderr, "fatal: could not malloc() %d bytes\n", 1.6 (int) size); 1.7 - exit(1); 1.8 + exit(EXIT_FAILURE); 1.9 } 1.10 1.11 /* extern */ 1.12 @@ -37,7 +37,7 @@ 1.13 va_start(ap, errstr); 1.14 vfprintf(stderr, errstr, ap); 1.15 va_end(ap); 1.16 - exit(1); 1.17 + exit(EXIT_FAILURE); 1.18 } 1.19 1.20 void 1.21 @@ -55,7 +55,7 @@ 1.22 fprintf(stderr, "dwm: execvp %s", argv[0]); 1.23 perror(" failed"); 1.24 } 1.25 - exit (0); 1.26 + exit(EXIT_FAILURE); 1.27 } 1.28 wait(0); 1.29 }