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 | no that's definately better (diff) | |
| download | dwm-1724f7fa43f9b2a3a3479c365e685ba23327ce2c.tar.gz dwm-1724f7fa43f9b2a3a3479c365e685ba23327ce2c.zip | |
introducing const where it might make some sense
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -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 | ||
| 72 | typedef struct { | 72 | typedef 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 | ||
| 142 | typedef struct { | 142 | typedef struct { |
| @@ -275,7 +275,7 @@ struct NumTags { char limitexceeded[sizeof(unsigned int) * 8 < LENGTH(tags) ? -1 | |||
| 275 | void | 275 | void |
| 276 | applyrules(Client *c) { | 276 | applyrules(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); |
