[hackers] [dwm] cleanup, dont use c++ style comments || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Tue, 20 Oct 2015 23:45:32 +0200 (CEST)

commit 04db03a4e69eba88c56c12128340125fb0ef1960
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Tue Oct 20 23:28:30 2015 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Tue Oct 20 23:38:20 2015 +0200

    cleanup, dont use c++ style comments
    
    - signal: print error string.
    - die: start message with lower-case (consistency).
    - bump version to 2015.

diff --git a/dwm.c b/dwm.c
index f9e0c3d..e2d7423 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -557,7 +557,7 @@ configurenotify(XEvent *e) {
         XConfigureEvent *ev = &e->xconfigure;
         Bool dirty;
 
- // TODO: updategeom handling sucks, needs to be simplified
+ /* TODO: updategeom handling sucks, needs to be simplified */
         if(ev->window == root) {
                 dirty = (sw != ev->width || sh != ev->height);
                 sw = ev->width;
_AT_@ -1509,7 +1509,7 @@ setup(void) {
         drw = drw_create(dpy, screen, root, sw, sh);
         drw_load_fonts(drw, fonts, LENGTH(fonts));
         if (!drw->fontcount)
- die("No fonts could be loaded.\n");
+ die("no fonts could be loaded.\n");
         bh = drw->fonts[0]->h + 2;
         updategeom();
         /* init atoms */
_AT_@ -1572,7 +1572,7 @@ showhide(Client *c) {
 void
 sigchld(int unused) {
         if(signal(SIGCHLD, sigchld) == SIG_ERR)
- die("Can't install SIGCHLD handler");
+ die("can't install SIGCHLD handler:");
         while(0 < waitpid(-1, NULL, WNOHANG));
 }
 
_AT_@ -2054,7 +2054,7 @@ zoom(const Arg *arg) {
 int
 main(int argc, char *argv[]) {
         if(argc == 2 && !strcmp("-v", argv[1]))
- die("dwm-"VERSION", © 2006-2014 dwm engineers, see LICENSE for details\n");
+ die("dwm-"VERSION", © 2006-2015 dwm engineers, see LICENSE for details\n");
         else if(argc != 1)
                 die("usage: dwm [-v]\n");
         if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
Received on Tue Oct 20 2015 - 23:45:32 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 20 2015 - 23:48:16 CEST