about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.def.h2
-rw-r--r--dwm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index f7822d2..5a18854 100644
--- a/config.def.h
+++ b/config.def.h
@@ -12,7 +12,7 @@
 #define SELFGCOLOR		"#ffffff"
 
 /* tagging */
-const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www", NULL };
+const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
 Rule rules[] = {
 	/* class:instance:title regex	tags regex	isfloating */
 	{ "Firefox",			"www",		False },
diff --git a/dwm.c b/dwm.c
index 6a21d3f..c9495ec 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1467,7 +1467,7 @@ setup(void) {
 
 	/* init tags */
 	compileregs();
-	for(ntags = 0; tags[ntags]; ntags++);
+	ntags = sizeof tags / sizeof tags[0];
 	seltags = emallocz(sizeof(Bool) * ntags);
 	seltags[0] = True;
 
CONFIG=blafasel' href='/acidbong/suckless/dwm/commit/config.default.h?h=master&id=b515765216c46246358256da6098ea2c07a93c84'>b515765 ^
b55bd70 ^






b515765 ^
1bf0c4a ^
b515765 ^

b515765 ^
292ccc4 ^
df74b26 ^


292ccc4 ^
df74b26 ^
3a1343a ^

8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^

bab575c ^
8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^
b515765 ^

d6a6eca ^
2dd5212 ^
b515765 ^

d6a6eca ^
e21d93b ^

b515765 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67