summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-10-20 23:28:30 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-10-20 23:38:20 +0200
commit04db03a4e69eba88c56c12128340125fb0ef1960 (patch)
tree1fda2a0d5a66be3fc8551c2730cffd083301765a
parentdwm: cleanup: free schemes and cursors as array (diff)
downloaddwm-04db03a4e69eba88c56c12128340125fb0ef1960.tar.gz
dwm-04db03a4e69eba88c56c12128340125fb0ef1960.zip
cleanup, dont use c++ style comments
- signal: print error string. - die: start message with lower-case (consistency). - bump version to 2015.
Diffstat (limited to '')
-rw-r--r--dwm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index f9e0c3d..e2d7423 100644
--- a/dwm.c
+++ b/dwm.c
@@ -557,7 +557,7 @@ configurenotify(XEvent *e) {
557 XConfigureEvent *ev = &e->xconfigure; 557 XConfigureEvent *ev = &e->xconfigure;
558 Bool dirty; 558 Bool dirty;
559 559
560 // TODO: updategeom handling sucks, needs to be simplified 560 /* TODO: updategeom handling sucks, needs to be simplified */
561 if(ev->window == root) { 561 if(ev->window == root) {
562 dirty = (sw != ev->width || sh != ev->height); 562 dirty = (sw != ev->width || sh != ev->height);
563 sw = ev->width; 563 sw = ev->width;
@@ -1509,7 +1509,7 @@ setup(void) {
1509 drw = drw_create(dpy, screen, root, sw, sh); 1509 drw = drw_create(dpy, screen, root, sw, sh);
1510 drw_load_fonts(drw, fonts, LENGTH(fonts)); 1510 drw_load_fonts(drw, fonts, LENGTH(fonts));
1511 if (!drw->fontcount) 1511 if (!drw->fontcount)
1512 die("No fonts could be loaded.\n"); 1512 die("no fonts could be loaded.\n");
1513 bh = drw->fonts[0]->h + 2; 1513 bh = drw->fonts[0]->h + 2;
1514 updategeom(); 1514 updategeom();
1515 /* init atoms */ 1515 /* init atoms */
@@ -1572,7 +1572,7 @@ showhide(Client *c) {
1572void 1572void
1573sigchld(int unused) { 1573sigchld(int unused) {
1574 if(signal(SIGCHLD, sigchld) == SIG_ERR) 1574 if(signal(SIGCHLD, sigchld) == SIG_ERR)
1575 die("Can't install SIGCHLD handler"); 1575 die("can't install SIGCHLD handler:");
1576 while(0 < waitpid(-1, NULL, WNOHANG)); 1576 while(0 < waitpid(-1, NULL, WNOHANG));
1577} 1577}
1578 1578
@@ -2054,7 +2054,7 @@ zoom(const Arg *arg) {
2054int 2054int
2055main(int argc, char *argv[]) { 2055main(int argc, char *argv[]) {
2056 if(argc == 2 && !strcmp("-v", argv[1])) 2056 if(argc == 2 && !strcmp("-v", argv[1]))
2057 die("dwm-"VERSION", © 2006-2014 dwm engineers, see LICENSE for details\n"); 2057 die("dwm-"VERSION", © 2006-2015 dwm engineers, see LICENSE for details\n");
2058 else if(argc != 1) 2058 else if(argc != 1)
2059 die("usage: dwm [-v]\n"); 2059 die("usage: dwm [-v]\n");
2060 if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) 2060 if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())