summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-load-buffer.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-load-buffer.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-load-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-load-buffer.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c
index 3152b326a21..47558baaab8 100644
--- a/usr.bin/tmux/cmd-load-buffer.c
+++ b/usr.bin/tmux/cmd-load-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-load-buffer.c,v 1.42 2016/03/05 07:47:52 nicm Exp $ */
+/* $OpenBSD: cmd-load-buffer.c,v 1.43 2016/10/10 21:51:39 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -31,8 +31,9 @@
* Loads a paste buffer from a file.
*/
-enum cmd_retval cmd_load_buffer_exec(struct cmd *, struct cmd_q *);
-void cmd_load_buffer_callback(struct client *, int, void *);
+static enum cmd_retval cmd_load_buffer_exec(struct cmd *, struct cmd_q *);
+
+static void cmd_load_buffer_callback(struct client *, int, void *);
const struct cmd_entry cmd_load_buffer_entry = {
.name = "load-buffer",
@@ -45,7 +46,7 @@ const struct cmd_entry cmd_load_buffer_entry = {
.exec = cmd_load_buffer_exec
};
-enum cmd_retval
+static enum cmd_retval
cmd_load_buffer_exec(struct cmd *self, struct cmd_q *cmdq)
{
struct args *args = self->args;
@@ -132,7 +133,7 @@ error:
return (CMD_RETURN_ERROR);
}
-void
+static void
cmd_load_buffer_callback(struct client *c, int closed, void *data)
{
const char *bufname = data;