changeset: 789:3edec0a35000
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Mon Feb 19 21:17:54 2007 +0100
summary: using eprint instead of fputs
diff -r a61fcdf7b4c1 -r 3edec0a35000 main.c
--- a/main.c Mon Feb 19 18:33:15 2007 +0100
+++ b/main.c Mon Feb 19 21:17:54 2007 +0100
@@ -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);
Received on Mon Feb 19 2007 - 21:18:04 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:31 UTC