about summary refs log tree commit diff stats
path: root/main.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-18 08:18:54 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-18 08:18:54 +0200
commit849e631510ed6533ac930449804e477fe67a43c2 (patch)
tree4c8d9ee852c18a5a8daceaf0d1f6b77e977315e9 /main.c
parent789717d109016279bd541efe5b72899fbcf68335 (diff)
downloaddwm-849e631510ed6533ac930449804e477fe67a43c2.tar.gz
using EXIT_stuff in exit() now
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.c b/main.c
index 27e2627..6035fb6 100644
--- a/main.c
+++ b/main.c
@@ -179,14 +179,13 @@ main(int argc, char *argv[])
 
 	for(i = 1; (i < argc) && (argv[i][0] == '-'); i++) {
 		switch (argv[i][1]) {
-		case 'v':
-			fprintf(stdout, "%s",
-					"dwm-"VERSION", (C)opyright MMVI Anselm R. Garbe\n");
-			exit(0);
-			break;
 		default:
 			eprint("usage: dwm [-v]\n");
 			break;
+		case 'v':
+			fputs("dwm-"VERSION", (C)opyright MMVI Anselm R. Garbe\n", stdout);
+			exit(EXIT_SUCCESS);
+			break;
 		}
 	}
 
4c24877a3e3f55ca582'>^
b27c5d0f ^
9b55f2de ^
a4cadf78 ^
71577c1f ^
81190251 ^

a2726b6a ^

71577c1f ^
3bb1f124 ^
7db1bcee ^
d56f6dc3 ^
5c65599e ^
81190251 ^
447d2358 ^
447d2358 ^

a2726b6a ^

447d2358 ^



a2726b6a ^

447d2358 ^



a2726b6a ^

447d2358 ^



a2726b6a ^

447d2358 ^
a2726b6a ^
49661625 ^
a2726b6a ^

447d2358 ^
3bb1f124 ^
88f423af ^
7db1bcee ^

00a475cf ^
8db2389d ^


7db1bcee ^
e571ccd8 ^
5c65599e ^
81190251 ^
3e3786eb ^
71577c1f ^

a2726b6a ^

447d2358 ^
a2726b6a ^
447d2358 ^
3bb1f124 ^
00a475cf ^
8db2389d ^


7db1bcee ^
e571ccd8 ^





a2726b6a ^

e571ccd8 ^
a2726b6a ^
a4cadf78 ^
a2726b6a ^

e571ccd8 ^





8db2389d ^


e571ccd8 ^

5c65599e ^
81190251 ^
447d2358 ^
447d2358 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109