using eprint instead of fputs

new_dwm
Anselm R. Garbe 18 years ago
parent 879241c05c
commit 6bc4556ebd

@ -381,15 +381,12 @@ main(int argc, char *argv[]) {
fd_set rd; fd_set rd;
XEvent ev; XEvent ev;
if(argc == 2 && !strncmp("-v", argv[1], 3)) { if(argc == 2 && !strncmp("-v", argv[1], 3))
fputs("dwm-"VERSION", (C)opyright MMVI-MMVII Anselm R. Garbe\n", stdout); eprint("dwm-"VERSION", (C)opyright MMVI-MMVII Anselm R. Garbe\n");
exit(EXIT_SUCCESS);
}
else if(argc != 1) else if(argc != 1)
eprint("usage: dwm [-v]\n"); eprint("usage: dwm [-v]\n");
setlocale(LC_CTYPE, ""); setlocale(LC_CTYPE, "");
dpy = XOpenDisplay(0); if(!(dpy = XOpenDisplay(0)))
if(!dpy)
eprint("dwm: cannot open display\n"); eprint("dwm: cannot open display\n");
xfd = ConnectionNumber(dpy); xfd = ConnectionNumber(dpy);
screen = DefaultScreen(dpy); screen = DefaultScreen(dpy);

Loading…
Cancel
Save