main.c
changeset 857 453788ae925c
parent 850 2ea201354cf0
child 858 b797071ebbd4
equal deleted inserted replaced
856:7c53a7f54174 857:453788ae925c
     1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
     1 /* © 2004-2007 Anselm R. Garbe <garbeam at gmail dot com>
     2  * See LICENSE file for license details.
     2  * See LICENSE file for license details. */
     3  */
       
     4 
       
     5 #include "dwm.h"
     3 #include "dwm.h"
     6 #include <errno.h>
     4 #include <errno.h>
     7 #include <locale.h>
     5 #include <locale.h>
     8 #include <stdio.h>
     6 #include <stdio.h>
     9 #include <stdlib.h>
     7 #include <stdlib.h>
   254 	int r, xfd;
   252 	int r, xfd;
   255 	fd_set rd;
   253 	fd_set rd;
   256 	XEvent ev;
   254 	XEvent ev;
   257 
   255 
   258 	if(argc == 2 && !strncmp("-v", argv[1], 3))
   256 	if(argc == 2 && !strncmp("-v", argv[1], 3))
   259 		eprint("dwm-"VERSION", (C)opyright MMVI-MMVII Anselm R. Garbe\n");
   257 		eprint("dwm-"VERSION", © 2004-2007 Anselm R. Garbe\n");
   260 	else if(argc != 1)
   258 	else if(argc != 1)
   261 		eprint("usage: dwm [-v]\n");
   259 		eprint("usage: dwm [-v]\n");
   262 	setlocale(LC_CTYPE, "");
   260 	setlocale(LC_CTYPE, "");
   263 	if(!(dpy = XOpenDisplay(0)))
   261 	if(!(dpy = XOpenDisplay(0)))
   264 		eprint("dwm: cannot open display\n");
   262 		eprint("dwm: cannot open display\n");