diff options
author | Anselm R Garbe <anselm@garbe.us> | 2009-07-08 18:59:20 +0100 |
---|---|---|
committer | Anselm R Garbe <anselm@garbe.us> | 2009-07-08 18:59:20 +0100 |
commit | 1724f7fa43f9b2a3a3479c365e685ba23327ce2c (patch) | |
tree | 29da615b5491f87ad95497d6a3c263f9eb29da89 /dwm.c | |
parent | 3e6fe6b541bcc553e2e104a8117008af02a8c760 (diff) | |
download | dwm-1724f7fa43f9b2a3a3479c365e685ba23327ce2c.tar dwm-1724f7fa43f9b2a3a3479c365e685ba23327ce2c.tar.gz dwm-1724f7fa43f9b2a3a3479c365e685ba23327ce2c.tar.bz2 |
introducing const where it might make some sense
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -66,7 +66,7 @@ typedef union { int i; unsigned int ui; float f; - void *v; + const void *v; } Arg; typedef struct { @@ -136,7 +136,7 @@ struct Monitor { Client *stack; Monitor *next; Window barwin; - Layout *lt[2]; + const Layout *lt[2]; }; typedef struct { @@ -275,7 +275,7 @@ struct NumTags { char limitexceeded[sizeof(unsigned int) * 8 < LENGTH(tags) ? -1 void applyrules(Client *c) { unsigned int i; - Rule *r; + const Rule *r; XClassHint ch = { 0 }; /* rule matching */ @@ -1726,8 +1726,8 @@ updategeom(void) { m->sellt = 0; m->tagset[0] = m->tagset[1] = 1; m->mfact = mfact; - m->showbar = SHOWBAR; - m->topbar = TOPBAR; + m->showbar = showbar; + m->topbar = topbar; m->lt[0] = &layouts[0]; m->lt[1] = &layouts[1 % LENGTH(layouts)]; updatebarpos(m); |