summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-show-messages.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-10-10 21:51:39 +0000
committernicm <nicm@openbsd.org>2016-10-10 21:51:39 +0000
commitdc1f0f5f6762d20526d28a4fea8505b8be833e1c (patch)
tree014a6f76677b5aa63dc7adf2af341d2ac92983f8 /usr.bin/tmux/cmd-show-messages.c
parentLoads more static, except for cmd-*.c and window-*.c. (diff)
downloadwireguard-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-show-messages.c')
-rw-r--r--usr.bin/tmux/cmd-show-messages.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-show-messages.c b/usr.bin/tmux/cmd-show-messages.c
index f7e026cb5dc..47d35ff23b6 100644
--- a/usr.bin/tmux/cmd-show-messages.c
+++ b/usr.bin/tmux/cmd-show-messages.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-show-messages.c,v 1.20 2016/01/19 15:59:12 nicm Exp $ */
+/* $OpenBSD: cmd-show-messages.c,v 1.21 2016/10/10 21:51:39 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -29,7 +29,7 @@
* Show client message log.
*/
-enum cmd_retval cmd_show_messages_exec(struct cmd *, struct cmd_q *);
+static enum cmd_retval cmd_show_messages_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_show_messages_entry = {
.name = "show-messages",
@@ -55,10 +55,10 @@ const struct cmd_entry cmd_server_info_entry = {
.exec = cmd_show_messages_exec
};
-int cmd_show_messages_terminals(struct cmd_q *, int);
-int cmd_show_messages_jobs(struct cmd_q *, int);
+static int cmd_show_messages_terminals(struct cmd_q *, int);
+static int cmd_show_messages_jobs(struct cmd_q *, int);
-int
+static int
cmd_show_messages_terminals(struct cmd_q *cmdq, int blank)
{
struct tty_term *term;
@@ -79,7 +79,7 @@ cmd_show_messages_terminals(struct cmd_q *cmdq, int blank)
return (n != 0);
}
-int
+static int
cmd_show_messages_jobs(struct cmd_q *cmdq, int blank)
{
struct job *job;
@@ -98,7 +98,7 @@ cmd_show_messages_jobs(struct cmd_q *cmdq, int blank)
return (n != 0);
}
-enum cmd_retval
+static enum cmd_retval
cmd_show_messages_exec(struct cmd *self, struct cmd_q *cmdq)
{
struct args *args = self->args;