diff options
author | 2016-10-10 21:51:39 +0000 | |
---|---|---|
committer | 2016-10-10 21:51:39 +0000 | |
commit | dc1f0f5f6762d20526d28a4fea8505b8be833e1c (patch) | |
tree | 014a6f76677b5aa63dc7adf2af341d2ac92983f8 /usr.bin/tmux/cmd-bind-key.c | |
parent | Loads more static, except for cmd-*.c and window-*.c. (diff) | |
download | wireguard-openbsd-dc1f0f5f6762d20526d28a4fea8505b8be833e1c.tar.xz wireguard-openbsd-dc1f0f5f6762d20526d28a4fea8505b8be833e1c.zip |
Add static in cmd-* and fix a few other nits.
Diffstat (limited to 'usr.bin/tmux/cmd-bind-key.c')
-rw-r--r-- | usr.bin/tmux/cmd-bind-key.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-bind-key.c b/usr.bin/tmux/cmd-bind-key.c index 0170abbe5fe..12f28e9ced6 100644 --- a/usr.bin/tmux/cmd-bind-key.c +++ b/usr.bin/tmux/cmd-bind-key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-bind-key.c,v 1.26 2016/09/12 15:40:58 nicm Exp $ */ +/* $OpenBSD: cmd-bind-key.c,v 1.27 2016/10/10 21:51:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -27,10 +27,10 @@ * Bind a key to a command, this recurses through cmd_*. */ -enum cmd_retval cmd_bind_key_exec(struct cmd *, struct cmd_q *); +static enum cmd_retval cmd_bind_key_exec(struct cmd *, struct cmd_q *); -enum cmd_retval cmd_bind_key_mode_table(struct cmd *, struct cmd_q *, - key_code); +static enum cmd_retval cmd_bind_key_mode_table(struct cmd *, struct cmd_q *, + key_code); const struct cmd_entry cmd_bind_key_entry = { .name = "bind-key", @@ -44,7 +44,7 @@ const struct cmd_entry cmd_bind_key_entry = { .exec = cmd_bind_key_exec }; -enum cmd_retval +static enum cmd_retval cmd_bind_key_exec(struct cmd *self, struct cmd_q *cmdq) { struct args *args = self->args; @@ -93,7 +93,7 @@ cmd_bind_key_exec(struct cmd *self, struct cmd_q *cmdq) return (CMD_RETURN_NORMAL); } -enum cmd_retval +static enum cmd_retval cmd_bind_key_mode_table(struct cmd *self, struct cmd_q *cmdq, key_code key) { struct args *args = self->args; |