Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
introducing const where it might make some sense
[dwm.git]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
d448f5b
..
17d5218
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-66,7
+66,7
@@
typedef union {
int i;
unsigned int ui;
float f;
int i;
unsigned int ui;
float f;
- void *v;
+ const void *v;
} Arg;
typedef struct {
} Arg;
typedef struct {
@@
-136,7
+136,7
@@
struct Monitor {
Client *stack;
Monitor *next;
Window barwin;
Client *stack;
Monitor *next;
Window barwin;
- Layout *lt[2];
+ const Layout *lt[2];
};
typedef struct {
};
typedef struct {
@@
-275,7
+275,7
@@
struct NumTags { char limitexceeded[sizeof(unsigned int) * 8 < LENGTH(tags) ? -1
void
applyrules(Client *c) {
unsigned int i;
void
applyrules(Client *c) {
unsigned int i;
- Rule *r;
+ const Rule *r;
XClassHint ch = { 0 };
/* rule matching */
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->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);
m->lt[0] = &layouts[0];
m->lt[1] = &layouts[1 % LENGTH(layouts)];
updatebarpos(m);