summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-03-22 10:31:22 +0000
committernicm <nicm@openbsd.org>2013-03-22 10:31:22 +0000
commitdafea000a2301e1d15ca0e6c4149fa50aaa8b1a3 (patch)
treeedf134dd37694ff21d97a35eec427f602582c545
parentRemove stray test code which would convert abc to x. (diff)
downloadwireguard-openbsd-dafea000a2301e1d15ca0e6c4149fa50aaa8b1a3.tar.xz
wireguard-openbsd-dafea000a2301e1d15ca0e6c4149fa50aaa8b1a3.zip
No more lint means no more ARGSUSED.
-rw-r--r--usr.bin/tmux/cfg.c4
-rw-r--r--usr.bin/tmux/client.c6
-rw-r--r--usr.bin/tmux/cmd-kill-server.c3
-rw-r--r--usr.bin/tmux/cmd-list-buffers.c3
-rw-r--r--usr.bin/tmux/cmd-list-clients.c3
-rw-r--r--usr.bin/tmux/cmd-list-commands.c3
-rw-r--r--usr.bin/tmux/cmd-lock-server.c3
-rw-r--r--usr.bin/tmux/cmd-pipe-pane.c3
-rw-r--r--usr.bin/tmux/cmd-server-info.c3
-rw-r--r--usr.bin/tmux/cmd-start-server.c3
-rw-r--r--usr.bin/tmux/job.c3
-rw-r--r--usr.bin/tmux/names.c3
-rw-r--r--usr.bin/tmux/screen-write.c3
-rw-r--r--usr.bin/tmux/server-client.c3
-rw-r--r--usr.bin/tmux/server-fn.c3
-rw-r--r--usr.bin/tmux/server.c5
-rw-r--r--usr.bin/tmux/status.c3
-rw-r--r--usr.bin/tmux/tty-keys.c3
-rw-r--r--usr.bin/tmux/tty.c4
-rw-r--r--usr.bin/tmux/window-choose.c4
-rw-r--r--usr.bin/tmux/window-clock.c3
-rw-r--r--usr.bin/tmux/window-copy.c3
-rw-r--r--usr.bin/tmux/window.c4
23 files changed, 23 insertions, 55 deletions
diff --git a/usr.bin/tmux/cfg.c b/usr.bin/tmux/cfg.c
index 6836ebbdfa7..1d881d3824e 100644
--- a/usr.bin/tmux/cfg.c
+++ b/usr.bin/tmux/cfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cfg.c,v 1.22 2013/03/21 16:54:37 nicm Exp $ */
+/* $OpenBSD: cfg.c,v 1.23 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -40,13 +40,11 @@ int cfg_finished;
int cfg_references;
struct causelist cfg_causes;
-/* ARGSUSED */
void printflike2
cfg_print(unused struct cmd_ctx *ctx, unused const char *fmt, ...)
{
}
-/* ARGSUSED */
void printflike2
cfg_error(unused struct cmd_ctx *ctx, const char *fmt, ...)
{
diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c
index f6d430de93f..c35db4f4009 100644
--- a/usr.bin/tmux/client.c
+++ b/usr.bin/tmux/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.60 2012/09/03 08:48:57 nicm Exp $ */
+/* $OpenBSD: client.c,v 1.61 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -360,7 +360,6 @@ client_update_event(void)
}
/* Callback to handle signals in the client. */
-/* ARGSUSED */
void
client_signal(int sig, unused short events, unused void *data)
{
@@ -407,7 +406,6 @@ client_signal(int sig, unused short events, unused void *data)
}
/* Callback for client imsg read events. */
-/* ARGSUSED */
void
client_callback(unused int fd, short events, void *data)
{
@@ -442,7 +440,6 @@ lost_server:
}
/* Callback for client stdin read events. */
-/* ARGSUSED */
void
client_stdin_callback(unused int fd, unused short events, unused void *data1)
{
@@ -571,7 +568,6 @@ client_dispatch_wait(void *data)
}
/* Dispatch imsgs in attached state (after MSG_READY). */
-/* ARGSUSED */
int
client_dispatch_attached(void)
{
diff --git a/usr.bin/tmux/cmd-kill-server.c b/usr.bin/tmux/cmd-kill-server.c
index 5ec44163b4c..6f003d742c4 100644
--- a/usr.bin/tmux/cmd-kill-server.c
+++ b/usr.bin/tmux/cmd-kill-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-kill-server.c,v 1.8 2012/07/11 07:10:15 nicm Exp $ */
+/* $OpenBSD: cmd-kill-server.c,v 1.9 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -39,7 +39,6 @@ const struct cmd_entry cmd_kill_server_entry = {
cmd_kill_server_exec
};
-/* ARGSUSED */
enum cmd_retval
cmd_kill_server_exec(unused struct cmd *self, unused struct cmd_ctx *ctx)
{
diff --git a/usr.bin/tmux/cmd-list-buffers.c b/usr.bin/tmux/cmd-list-buffers.c
index eba64fc4c55..ef5b218429a 100644
--- a/usr.bin/tmux/cmd-list-buffers.c
+++ b/usr.bin/tmux/cmd-list-buffers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-buffers.c,v 1.15 2012/08/14 08:51:53 nicm Exp $ */
+/* $OpenBSD: cmd-list-buffers.c,v 1.16 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -39,7 +39,6 @@ const struct cmd_entry cmd_list_buffers_entry = {
cmd_list_buffers_exec
};
-/* ARGSUSED */
enum cmd_retval
cmd_list_buffers_exec(unused struct cmd *self, struct cmd_ctx *ctx)
{
diff --git a/usr.bin/tmux/cmd-list-clients.c b/usr.bin/tmux/cmd-list-clients.c
index 4788835382a..1bb32fbf254 100644
--- a/usr.bin/tmux/cmd-list-clients.c
+++ b/usr.bin/tmux/cmd-list-clients.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-clients.c,v 1.14 2012/10/15 21:53:30 nicm Exp $ */
+/* $OpenBSD: cmd-list-clients.c,v 1.15 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -40,7 +40,6 @@ const struct cmd_entry cmd_list_clients_entry = {
cmd_list_clients_exec
};
-/* ARGSUSED */
enum cmd_retval
cmd_list_clients_exec(struct cmd *self, struct cmd_ctx *ctx)
{
diff --git a/usr.bin/tmux/cmd-list-commands.c b/usr.bin/tmux/cmd-list-commands.c
index 94210151fee..553f3336fb3 100644
--- a/usr.bin/tmux/cmd-list-commands.c
+++ b/usr.bin/tmux/cmd-list-commands.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-commands.c,v 1.8 2013/03/21 16:12:50 nicm Exp $ */
+/* $OpenBSD: cmd-list-commands.c,v 1.9 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -36,7 +36,6 @@ const struct cmd_entry cmd_list_commands_entry = {
cmd_list_commands_exec
};
-/* ARGSUSED */
enum cmd_retval
cmd_list_commands_exec(unused struct cmd *self, struct cmd_ctx *ctx)
{
diff --git a/usr.bin/tmux/cmd-lock-server.c b/usr.bin/tmux/cmd-lock-server.c
index 0c7a47a3c32..f899b974efe 100644
--- a/usr.bin/tmux/cmd-lock-server.c
+++ b/usr.bin/tmux/cmd-lock-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-lock-server.c,v 1.11 2012/07/11 07:10:15 nicm Exp $ */
+/* $OpenBSD: cmd-lock-server.c,v 1.12 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -60,7 +60,6 @@ const struct cmd_entry cmd_lock_client_entry = {
cmd_lock_server_exec
};
-/* ARGSUSED */
enum cmd_retval
cmd_lock_server_exec(struct cmd *self, unused struct cmd_ctx *ctx)
{
diff --git a/usr.bin/tmux/cmd-pipe-pane.c b/usr.bin/tmux/cmd-pipe-pane.c
index 9cb5235f286..1078f233d18 100644
--- a/usr.bin/tmux/cmd-pipe-pane.c
+++ b/usr.bin/tmux/cmd-pipe-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-pipe-pane.c,v 1.22 2012/07/11 07:10:15 nicm Exp $ */
+/* $OpenBSD: cmd-pipe-pane.c,v 1.23 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -131,7 +131,6 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
}
}
-/* ARGSUSED */
void
cmd_pipe_pane_error_callback(
unused struct bufferevent *bufev, unused short what, void *data)
diff --git a/usr.bin/tmux/cmd-server-info.c b/usr.bin/tmux/cmd-server-info.c
index d2653509eb6..2c71cad8dec 100644
--- a/usr.bin/tmux/cmd-server-info.c
+++ b/usr.bin/tmux/cmd-server-info.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-server-info.c,v 1.30 2013/01/18 02:16:21 nicm Exp $ */
+/* $OpenBSD: cmd-server-info.c,v 1.31 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -43,7 +43,6 @@ const struct cmd_entry cmd_server_info_entry = {
cmd_server_info_exec
};
-/* ARGSUSED */
enum cmd_retval
cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
{
diff --git a/usr.bin/tmux/cmd-start-server.c b/usr.bin/tmux/cmd-start-server.c
index e8ad998b265..378a8ad1643 100644
--- a/usr.bin/tmux/cmd-start-server.c
+++ b/usr.bin/tmux/cmd-start-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-start-server.c,v 1.7 2012/07/11 07:10:15 nicm Exp $ */
+/* $OpenBSD: cmd-start-server.c,v 1.8 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -36,7 +36,6 @@ const struct cmd_entry cmd_start_server_entry = {
cmd_start_server_exec
};
-/* ARGSUSED */
enum cmd_retval
cmd_start_server_exec(unused struct cmd *self, unused struct cmd_ctx *ctx)
{
diff --git a/usr.bin/tmux/job.c b/usr.bin/tmux/job.c
index f812eec6d27..0cc690613db 100644
--- a/usr.bin/tmux/job.c
+++ b/usr.bin/tmux/job.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: job.c,v 1.27 2012/07/10 11:53:01 nicm Exp $ */
+/* $OpenBSD: job.c,v 1.28 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -134,7 +134,6 @@ job_free(struct job *job)
}
/* Job buffer error callback. */
-/* ARGSUSED */
void
job_callback(unused struct bufferevent *bufev, unused short events, void *data)
{
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c
index ccf7f603a54..4e11d6bf21e 100644
--- a/usr.bin/tmux/names.c
+++ b/usr.bin/tmux/names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: names.c,v 1.18 2012/11/27 09:20:03 nicm Exp $ */
+/* $OpenBSD: names.c,v 1.19 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -43,7 +43,6 @@ queue_window_name(struct window *w)
evtimer_add(&w->name_timer, &tv);
}
-/* ARGSUSED */
void
window_name_callback(unused int fd, unused short events, void *data)
{
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index db9559734c1..2d490dd375a 100644
--- a/usr.bin/tmux/screen-write.c
+++ b/usr.bin/tmux/screen-write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.61 2013/03/21 18:47:56 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.62 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -41,7 +41,6 @@ screen_write_start(
}
/* Finish writing. */
-/* ARGSUSED */
void
screen_write_stop(unused struct screen_write_ctx *ctx)
{
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index e8378ca7b64..11bdb1dff27 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.86 2013/03/21 18:47:01 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.87 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -587,7 +587,6 @@ server_client_reset_state(struct client *c)
}
/* Repeat time callback. */
-/* ARGSUSED */
void
server_client_repeat_timer(unused int fd, unused short events, void *data)
{
diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c
index eaea361cf6d..a30d3903b34 100644
--- a/usr.bin/tmux/server-fn.c
+++ b/usr.bin/tmux/server-fn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-fn.c,v 1.62 2013/03/21 18:47:01 nicm Exp $ */
+/* $OpenBSD: server-fn.c,v 1.63 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -494,7 +494,6 @@ server_clear_identify(struct client *c)
}
}
-/* ARGSUSED */
void
server_callback_identify(unused int fd, unused short events, void *data)
{
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index bcc7f9bb1e6..4db82fedfe1 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.107 2012/12/06 12:49:13 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.108 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -316,7 +316,6 @@ server_update_socket(void)
}
/* Callback for server socket. */
-/* ARGSUSED */
void
server_accept_callback(int fd, short events, unused void *data)
{
@@ -370,7 +369,6 @@ server_add_accept(int timeout)
}
/* Signal handler. */
-/* ARGSUSED */
void
server_signal_callback(int sig, unused short events, unused void *data)
{
@@ -466,7 +464,6 @@ server_child_stopped(pid_t pid, int status)
}
/* Handle once-per-second timer events. */
-/* ARGSUSED */
void
server_second_callback(unused int fd, unused short events, unused void *arg)
{
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 07b32dab6e8..b245f135047 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.99 2013/03/21 16:25:08 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.100 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -829,7 +829,6 @@ status_message_clear(struct client *c)
}
/* Clear status line message after timer expires. */
-/* ARGSUSED */
void
status_message_callback(unused int fd, unused short event, void *data)
{
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c
index d5a6c815055..c1b222c8a55 100644
--- a/usr.bin/tmux/tty-keys.c
+++ b/usr.bin/tmux/tty-keys.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty-keys.c,v 1.53 2013/03/22 10:30:34 nicm Exp $ */
+/* $OpenBSD: tty-keys.c,v 1.54 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -567,7 +567,6 @@ complete_key:
}
/* Key timer callback. */
-/* ARGSUSED */
void
tty_keys_callback(unused int fd, unused short events, void *data)
{
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 6c8eb3ddc0e..c59cf67df21 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.151 2013/03/22 10:30:04 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.152 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -161,7 +161,6 @@ tty_open(struct tty *tty, const char *overrides, char **cause)
return (0);
}
-/* ARGSUSED */
void
tty_read_callback(unused struct bufferevent *bufev, void *data)
{
@@ -171,7 +170,6 @@ tty_read_callback(unused struct bufferevent *bufev, void *data)
;
}
-/* ARGSUSED */
void
tty_error_callback(
unused struct bufferevent *bufev, unused short what, unused void *data)
diff --git a/usr.bin/tmux/window-choose.c b/usr.bin/tmux/window-choose.c
index b01a49a23ea..e3cf9d7fdd3 100644
--- a/usr.bin/tmux/window-choose.c
+++ b/usr.bin/tmux/window-choose.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-choose.c,v 1.38 2013/03/21 16:22:48 nicm Exp $ */
+/* $OpenBSD: window-choose.c,v 1.39 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -480,7 +480,6 @@ window_choose_expand(struct window_pane *wp, struct session *s, u_int pos)
}
}
-/* ARGSUSED */
void
window_choose_key(struct window_pane *wp, unused struct session *sess, int key)
{
@@ -686,7 +685,6 @@ window_choose_key(struct window_pane *wp, unused struct session *sess, int key)
}
}
-/* ARGSUSED */
void
window_choose_mouse(
struct window_pane *wp, unused struct session *sess, struct mouse_event *m)
diff --git a/usr.bin/tmux/window-clock.c b/usr.bin/tmux/window-clock.c
index 7cdc1a4c91d..1c0fc997357 100644
--- a/usr.bin/tmux/window-clock.c
+++ b/usr.bin/tmux/window-clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-clock.c,v 1.8 2013/02/05 11:08:59 nicm Exp $ */
+/* $OpenBSD: window-clock.c,v 1.9 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -83,7 +83,6 @@ window_clock_resize(struct window_pane *wp, u_int sx, u_int sy)
window_clock_draw_screen(wp);
}
-/* ARGSUSED */
void
window_clock_key(
struct window_pane *wp, unused struct session *sess, unused int key)
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index 7348f6b6da3..47e13a94211 100644
--- a/usr.bin/tmux/window-copy.c
+++ b/usr.bin/tmux/window-copy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-copy.c,v 1.87 2013/02/05 11:08:59 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.88 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -814,7 +814,6 @@ window_copy_key_numeric_prefix(struct window_pane *wp, int key)
return (0);
}
-/* ARGSUSED */
void
window_copy_mouse(
struct window_pane *wp, struct session *sess, struct mouse_event *m)
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index efa07f1e696..6d75fa0b7cf 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.89 2013/02/05 11:08:59 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.90 2013/03/22 10:31:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -802,7 +802,6 @@ window_pane_timer_callback(unused int fd, unused short events, void *data)
wp->changes = 0;
}
-/* ARGSUSED */
void
window_pane_read_callback(unused struct bufferevent *bufev, void *data)
{
@@ -829,7 +828,6 @@ window_pane_read_callback(unused struct bufferevent *bufev, void *data)
fatal("gettimeofday failed.");
}
-/* ARGSUSED */
void
window_pane_error_callback(
unused struct bufferevent *bufev, unused short what, void *data)