From 9d165df18aa9731b6720cce9093e006f22d34914 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 17 Feb 2013 23:15:38 +0000 Subject: [PATCH] No more lint means no more ARGSUSED. --- cfg.c | 2 -- client.c | 4 ---- cmd-kill-server.c | 1 - cmd-list-buffers.c | 1 - cmd-list-clients.c | 1 - cmd-list-commands.c | 1 - cmd-lock-server.c | 1 - cmd-pipe-pane.c | 1 - cmd-server-info.c | 1 - cmd-start-server.c | 1 - job.c | 1 - names.c | 1 - screen-write.c | 1 - server-client.c | 1 - server-fn.c | 1 - server.c | 3 --- status.c | 1 - tty-keys.c | 1 - tty.c | 2 -- window-choose.c | 2 -- window-clock.c | 1 - window-copy.c | 1 - window.c | 2 -- 23 files changed, 32 deletions(-) diff --git a/cfg.c b/cfg.c index c62f60cc..c5c8c657 100644 --- a/cfg.c +++ b/cfg.c @@ -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/client.c b/client.c index ae4f5066..fd2bdafa 100644 --- a/client.c +++ b/client.c @@ -364,7 +364,6 @@ client_update_event(void) } /* Callback to handle signals in the client. */ -/* ARGSUSED */ void client_signal(int sig, unused short events, unused void *data) { @@ -411,7 +410,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) { @@ -446,7 +444,6 @@ lost_server: } /* Callback for client stdin read events. */ -/* ARGSUSED */ void client_stdin_callback(unused int fd, unused short events, unused void *data1) { @@ -575,7 +572,6 @@ client_dispatch_wait(void *data) } /* Dispatch imsgs in attached state (after MSG_READY). */ -/* ARGSUSED */ int client_dispatch_attached(void) { diff --git a/cmd-kill-server.c b/cmd-kill-server.c index 6eb39c41..7644f33c 100644 --- a/cmd-kill-server.c +++ b/cmd-kill-server.c @@ -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/cmd-list-buffers.c b/cmd-list-buffers.c index f0d17877..214b9102 100644 --- a/cmd-list-buffers.c +++ b/cmd-list-buffers.c @@ -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/cmd-list-clients.c b/cmd-list-clients.c index 19976cfd..a74fe69d 100644 --- a/cmd-list-clients.c +++ b/cmd-list-clients.c @@ -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/cmd-list-commands.c b/cmd-list-commands.c index 2acdfc50..f816221a 100644 --- a/cmd-list-commands.c +++ b/cmd-list-commands.c @@ -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/cmd-lock-server.c b/cmd-lock-server.c index 9d650275..db0b7dc4 100644 --- a/cmd-lock-server.c +++ b/cmd-lock-server.c @@ -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/cmd-pipe-pane.c b/cmd-pipe-pane.c index d2d85003..8f53b6ee 100644 --- a/cmd-pipe-pane.c +++ b/cmd-pipe-pane.c @@ -130,7 +130,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/cmd-server-info.c b/cmd-server-info.c index 79310664..933a5395 100644 --- a/cmd-server-info.c +++ b/cmd-server-info.c @@ -42,7 +42,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/cmd-start-server.c b/cmd-start-server.c index 7da13375..e310276a 100644 --- a/cmd-start-server.c +++ b/cmd-start-server.c @@ -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/job.c b/job.c index c648eae0..8885899f 100644 --- a/job.c +++ b/job.c @@ -133,7 +133,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/names.c b/names.c index 72f1ad17..f536d2fc 100644 --- a/names.c +++ b/names.c @@ -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/screen-write.c b/screen-write.c index 87e84937..2cc98501 100644 --- a/screen-write.c +++ b/screen-write.c @@ -41,7 +41,6 @@ screen_write_start( } /* Finish writing. */ -/* ARGSUSED */ void screen_write_stop(unused struct screen_write_ctx *ctx) { diff --git a/server-client.c b/server-client.c index e7c117f2..d4449a50 100644 --- a/server-client.c +++ b/server-client.c @@ -586,7 +586,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/server-fn.c b/server-fn.c index 87811c15..c09f1b7e 100644 --- a/server-fn.c +++ b/server-fn.c @@ -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/server.c b/server.c index b5139b4f..4537bf7d 100644 --- a/server.c +++ b/server.c @@ -317,7 +317,6 @@ server_update_socket(void) } /* Callback for server socket. */ -/* ARGSUSED */ void server_accept_callback(int fd, short events, unused void *data) { @@ -371,7 +370,6 @@ server_add_accept(int timeout) } /* Signal handler. */ -/* ARGSUSED */ void server_signal_callback(int sig, unused short events, unused void *data) { @@ -467,7 +465,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/status.c b/status.c index 9a84ae43..4083f2a5 100644 --- a/status.c +++ b/status.c @@ -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/tty-keys.c b/tty-keys.c index 5e61de6f..5fda2fb3 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -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/tty.c b/tty.c index cc834344..bae97ac8 100644 --- a/tty.c +++ b/tty.c @@ -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/window-choose.c b/window-choose.c index 9aab652d..62f729a9 100644 --- a/window-choose.c +++ b/window-choose.c @@ -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/window-clock.c b/window-clock.c index 4cd3f6a1..61cf1502 100644 --- a/window-clock.c +++ b/window-clock.c @@ -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/window-copy.c b/window-copy.c index c319aba6..be759d8b 100644 --- a/window-copy.c +++ b/window-copy.c @@ -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/window.c b/window.c index aed7596b..77f06f89 100644 --- a/window.c +++ b/window.c @@ -803,7 +803,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) { @@ -830,7 +829,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)