removing NULL-terminating **tags definition in config.h 883e09b2
Anselm R. Garbe · 2007-10-05 18:30 2 file(s) · +2 −2
config.def.h +1 −1
12 12
#define SELFGCOLOR		"#ffffff"
13 13
14 14
/* tagging */
15 -
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www", NULL };
15 +
const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
16 16
Rule rules[] = {
17 17
	/* class:instance:title regex	tags regex	isfloating */
18 18
	{ "Firefox",			"www",		False },
dwm.c +1 −1
1467 1467
1468 1468
	/* init tags */
1469 1469
	compileregs();
1470 -
	for(ntags = 0; tags[ntags]; ntags++);
1470 +
	ntags = sizeof tags / sizeof tags[0];
1471 1471
	seltags = emallocz(sizeof(Bool) * ntags);
1472 1472
	seltags[0] = True;
1473 1473