about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-19 21:17:54 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-19 21:17:54 +0100
commit6bc4556ebd7f48f52f9a446e53d1705d8fd79b27 (patch)
tree94831a12c42294e0ed3dcc9cfd295066ab19506a
parent879241c05cbf959304a2dc4f2fabcdcecaea5092 (diff)
downloaddwm-6bc4556ebd7f48f52f9a446e53d1705d8fd79b27.tar.gz
using eprint instead of fputs
-rw-r--r--main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/main.c b/main.c
index 8ecf9fa..6f8914c 100644
--- a/main.c
+++ b/main.c
@@ -381,15 +381,12 @@ main(int argc, char *argv[]) {
 	fd_set rd;
 	XEvent ev;
 
-	if(argc == 2 && !strncmp("-v", argv[1], 3)) {
-		fputs("dwm-"VERSION", (C)opyright MMVI-MMVII Anselm R. Garbe\n", stdout);
-		exit(EXIT_SUCCESS);
-	}
+	if(argc == 2 && !strncmp("-v", argv[1], 3))
+		eprint("dwm-"VERSION", (C)opyright MMVI-MMVII Anselm R. Garbe\n");
 	else if(argc != 1)
 		eprint("usage: dwm [-v]\n");
 	setlocale(LC_CTYPE, "");
-	dpy = XOpenDisplay(0);
-	if(!dpy)
+	if(!(dpy = XOpenDisplay(0)))
 		eprint("dwm: cannot open display\n");
 	xfd = ConnectionNumber(dpy);
 	screen = DefaultScreen(dpy);
t; 2010-06-18 17:11:54 +0200 committer hut <hut@lavabit.com> 2010-06-18 17:11:54 +0200 Removed built-in support for uninstalling.' href='/akspecs/ranger/commit/INSTALL?h=v1.7.0&id=b06433bc03632ae0fe74381fa0a474d64b0fee94'>b06433bc ^
582f3519 ^
b06433bc ^
3edc9f86 ^
b06433bc ^
7582555b ^
84c49ab7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23