summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-07-08 18:59:20 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-07-08 18:59:20 +0100
commit1724f7fa43f9b2a3a3479c365e685ba23327ce2c (patch)
tree29da615b5491f87ad95497d6a3c263f9eb29da89 /dwm.c
parentno that's definately better (diff)
downloaddwm-1724f7fa43f9b2a3a3479c365e685ba23327ce2c.tar.gz
dwm-1724f7fa43f9b2a3a3479c365e685ba23327ce2c.zip
introducing const where it might make some sense
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index d448f5b..17d5218 100644
--- a/dwm.c
+++ b/dwm.c
@@ -66,7 +66,7 @@ typedef union {
66 int i; 66 int i;
67 unsigned int ui; 67 unsigned int ui;
68 float f; 68 float f;
69 void *v; 69 const void *v;
70} Arg; 70} Arg;
71 71
72typedef struct { 72typedef struct {
@@ -136,7 +136,7 @@ struct Monitor {
136 Client *stack; 136 Client *stack;
137 Monitor *next; 137 Monitor *next;
138 Window barwin; 138 Window barwin;
139 Layout *lt[2]; 139 const Layout *lt[2];
140}; 140};
141 141
142typedef struct { 142typedef struct {
@@ -275,7 +275,7 @@ struct NumTags { char limitexceeded[sizeof(unsigned int) * 8 < LENGTH(tags) ? -1
275void 275void
276applyrules(Client *c) { 276applyrules(Client *c) {
277 unsigned int i; 277 unsigned int i;
278 Rule *r; 278 const Rule *r;
279 XClassHint ch = { 0 }; 279 XClassHint ch = { 0 };
280 280
281 /* rule matching */ 281 /* rule matching */
@@ -1726,8 +1726,8 @@ updategeom(void) {
1726 m->sellt = 0; 1726 m->sellt = 0;
1727 m->tagset[0] = m->tagset[1] = 1; 1727 m->tagset[0] = m->tagset[1] = 1;
1728 m->mfact = mfact; 1728 m->mfact = mfact;
1729 m->showbar = SHOWBAR; 1729 m->showbar = showbar;
1730 m->topbar = TOPBAR; 1730 m->topbar = topbar;
1731 m->lt[0] = &layouts[0]; 1731 m->lt[0] = &layouts[0];
1732 m->lt[1] = &layouts[1 % LENGTH(layouts)]; 1732 m->lt[1] = &layouts[1 % LENGTH(layouts)];
1733 updatebarpos(m); 1733 updatebarpos(m);