diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-01-01 03:39:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-01-01 03:39:21 +0000 |
commit | 67ee86085cc8e13222a6d5b4cc67c5f0934f0b3b (patch) | |
tree | 20f2aebe1f752e7822233ead89f17b9995d576cb /tmux.h | |
parent | 5d0cfe079b5c1309c40fc5bfd76f7786059577d5 (diff) |
Sprinkle a little more const.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -534,10 +534,10 @@ struct mode_key_cmdstr { /* Named mode key table description. */ struct mode_key_table { - const char *name; - struct mode_key_cmdstr *cmdstr; - struct mode_key_tree *tree; - const struct mode_key_entry *table; /* default entries */ + const char *name; + const struct mode_key_cmdstr *cmdstr; + struct mode_key_tree *tree; + const struct mode_key_entry *table; /* default entries */ }; /* Modes. */ @@ -1329,8 +1329,10 @@ extern struct mode_key_tree mode_key_tree_emacs_choice; extern struct mode_key_tree mode_key_tree_emacs_copy; int mode_key_cmp(struct mode_key_binding *, struct mode_key_binding *); SPLAY_PROTOTYPE(mode_key_tree, mode_key_binding, entry, mode_key_cmp); -const char *mode_key_tostring(struct mode_key_cmdstr *r, enum mode_key_cmd); -enum mode_key_cmd mode_key_fromstring(struct mode_key_cmdstr *, const char *); +const char *mode_key_tostring(const struct mode_key_cmdstr *, + enum mode_key_cmd); +enum mode_key_cmd mode_key_fromstring(const struct mode_key_cmdstr *, + const char *); const struct mode_key_table *mode_key_findtable(const char *); void mode_key_init_trees(void); void mode_key_init(struct mode_key_data *, struct mode_key_tree *); |