dwm-meillo
diff main.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 | 5d88952cbf96 |
line diff
1.1 --- a/main.c Mon Jul 17 18:49:13 2006 +0200 1.2 +++ b/main.c Tue Jul 18 08:18:54 2006 +0200 1.3 @@ -179,14 +179,13 @@ 1.4 1.5 for(i = 1; (i < argc) && (argv[i][0] == '-'); i++) { 1.6 switch (argv[i][1]) { 1.7 - case 'v': 1.8 - fprintf(stdout, "%s", 1.9 - "dwm-"VERSION", (C)opyright MMVI Anselm R. Garbe\n"); 1.10 - exit(0); 1.11 - break; 1.12 default: 1.13 eprint("usage: dwm [-v]\n"); 1.14 break; 1.15 + case 'v': 1.16 + fputs("dwm-"VERSION", (C)opyright MMVI Anselm R. Garbe\n", stdout); 1.17 + exit(EXIT_SUCCESS); 1.18 + break; 1.19 } 1.20 } 1.21