summaryrefslogtreecommitdiffstats
path: root/cmd-kill-window.c
authornicm <nicm>2008-06-05 16:35:31 (GMT)
committer nicm <nicm>2008-06-05 16:35:31 (GMT)
commit29b63e060bff090b98425e953af089cedaea8ef1 (patch) (side-by-side diff)
tree58d4810c8c1ec7f27c429b6b10eb43ef974a5949 /cmd-kill-window.c
parent1f17000d7f4e3b12f8c035c8209e72568b865b6e (diff)
downloadtmux-old-29b63e060bff090b98425e953af089cedaea8ef1.zip
tmux-old-29b63e060bff090b98425e953af089cedaea8ef1.tar.gz
tmux-old-29b63e060bff090b98425e953af089cedaea8ef1.tar.bz2
Easy bits of arg printing for list-keys.
Diffstat (limited to 'cmd-kill-window.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-kill-window.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-kill-window.c b/cmd-kill-window.c
index 008f3f8..023fd2e 100644
--- a/cmd-kill-window.c
+++ b/cmd-kill-window.c
@@ -24,7 +24,7 @@
* Destroy window.
*/
-void cmd_kill_window_exec(void *, struct cmd_ctx *);
+void cmd_kill_window_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_kill_window_entry = {
"kill-window", "killw",
@@ -35,11 +35,12 @@ const struct cmd_entry cmd_kill_window_entry = {
cmd_windowonly_send,
cmd_windowonly_recv,
cmd_windowonly_free,
+ NULL,
NULL
};
void
-cmd_kill_window_exec(void *ptr, struct cmd_ctx *ctx)
+cmd_kill_window_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct winlink *wl;
struct session *s;
@@ -47,7 +48,7 @@ cmd_kill_window_exec(void *ptr, struct cmd_ctx *ctx)
u_int i;
int destroyed;
- if ((wl = cmd_windowonly_get(ptr, ctx, &s)) == NULL)
+ if ((wl = cmd_windowonly_get(self, ctx, &s)) == NULL)
return;
destroyed = session_detach(s, wl);