tusing eprint instead of fputs - dwm - [fork] customized build of dwm, the dynamic window manager
HTML git clone git://src.adamsgaard.dk/dwm
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 6bc4556ebd7f48f52f9a446e53d1705d8fd79b27
DIR parent 879241c05cbf959304a2dc4f2fabcdcecaea5092
HTML Author: Anselm R. Garbe <arg@suckless.org>
Date: Mon, 19 Feb 2007 21:17:54 +0100
using eprint instead of fputs
Diffstat:
M main.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
DIR diff --git a/main.c b/main.c
t@@ -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);