projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e25897
)
removing NULL-terminating **tags definition in config.h
author
Anselm R. Garbe
<garbeam@gmail.com>
Fri, 5 Oct 2007 16:30:01 +0000
(18:30 +0200)
committer
Anselm R. Garbe
<garbeam@gmail.com>
Fri, 5 Oct 2007 16:30:01 +0000
(18:30 +0200)
config.def.h
patch
|
blob
|
history
dwm.c
patch
|
blob
|
history
diff --git
a/config.def.h
b/config.def.h
index f7822d2b76c1e57a443cdda68d5a25264c093869..5a188540bf1b59e358e5e9263de335dee2498a11 100644
(file)
--- 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 6a21d3face00cf684b69aaaaca14f443ca832bc7..c9495ec1fd12cb43b5466e2303e0a60a9a8dfb9d 100644
(file)
--- 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;