diff options
author | okan | 2014-01-21 15:42:44 +0000 |
---|---|---|
committer | okan | 2014-01-21 15:42:44 +0000 |
commit | 129338185f898dfe060a3de1b5b7aba429161b81 (patch) | |
tree | d440ddf50e01d21573c3512ab26de909b9ffc820 /conf.c | |
parent | 84ce709251f9e47f74b8a6c75760eb3182063f8b (diff) | |
download | cwm-129338185f898dfe060a3de1b5b7aba429161b81.tar.gz |
Sprinkle a few more const; from Tiago Cunha.
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.159 2014/01/20 23:03:51 okan Exp $ + * $OpenBSD: conf.c,v 1.160 2014/01/21 15:42:44 okan Exp $ */ #include <sys/param.h> @@ -85,7 +85,7 @@ conf_ignore(struct conf *c, const char *val) TAILQ_INSERT_TAIL(&c->ignoreq, wm, entry); } -static char *color_binds[] = { +static const char *color_binds[] = { "#CCCCCC", /* CWM_COLOR_BORDER_ACTIVE */ "#666666", /* CWM_COLOR_BORDER_INACTIVE */ "#FC8814", /* CWM_COLOR_BORDER_URGENCY */ @@ -147,9 +147,9 @@ conf_screen(struct screen_ctx *sc) conf_grab_kbd(sc->rootwin); } -static struct { - char *key; - char *func; +static const struct { + const char *key; + const char *func; } kbd_binds[] = { { "CM-Return", "terminal" }, { "CM-Delete", "lock" }, @@ -318,8 +318,8 @@ conf_client(struct client_ctx *cc) cc->flags |= ignore ? CLIENT_IGNORE : 0; } -static struct { - char *tag; +static const struct { + const char *tag; void (*handler)(struct client_ctx *, union arg *); int flags; union arg argument; @@ -432,9 +432,9 @@ static struct { { "vtile", kbfunc_tile, CWM_WIN, {.i = CWM_TILE_VERT} }, }; -static struct { - char ch; - int mask; +static const struct { + const char ch; + int mask; } bind_mods[] = { { 'C', ControlMask }, { 'M', Mod1Mask }, @@ -525,8 +525,8 @@ conf_unbind_kbd(struct conf *c, struct keybinding *unbind) } } -static struct { - char *tag; +static const struct { + const char *tag; void (*handler)(struct client_ctx *, union arg *); int flags; union arg argument; |