cleanup, dont use c++ style comments 04db03a4
- signal: print error string.
- die: start message with lower-case (consistency).
- bump version to 2015.
Hiltjo Posthuma · 2015-10-20 23:28 1 file(s) · +4 −4
dwm.c +4 −4
557 557
	XConfigureEvent *ev = &e->xconfigure;
558 558
	Bool dirty;
559 559
560 -
	// TODO: updategeom handling sucks, needs to be simplified
560 +
	/* TODO: updategeom handling sucks, needs to be simplified */
561 561
	if(ev->window == root) {
562 562
		dirty = (sw != ev->width || sh != ev->height);
563 563
		sw = ev->width;
1509 1509
	drw = drw_create(dpy, screen, root, sw, sh);
1510 1510
	drw_load_fonts(drw, fonts, LENGTH(fonts));
1511 1511
	if (!drw->fontcount)
1512 -
		die("No fonts could be loaded.\n");
1512 +
		die("no fonts could be loaded.\n");
1513 1513
	bh = drw->fonts[0]->h + 2;
1514 1514
	updategeom();
1515 1515
	/* init atoms */
1572 1572
void
1573 1573
sigchld(int unused) {
1574 1574
	if(signal(SIGCHLD, sigchld) == SIG_ERR)
1575 -
		die("Can't install SIGCHLD handler");
1575 +
		die("can't install SIGCHLD handler:");
1576 1576
	while(0 < waitpid(-1, NULL, WNOHANG));
1577 1577
}
1578 1578
2054 2054
int
2055 2055
main(int argc, char *argv[]) {
2056 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 2058
	else if(argc != 1)
2059 2059
		die("usage: dwm [-v]\n");
2060 2060
	if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())