summaryrefslogtreecommitdiffstats
path: root/cmd-send-prefix.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-05 16:35:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-05 16:35:32 +0000
commit642c0b00ab43079cd251ec9616963b8a806b3464 (patch)
tree40f2bcf2f39d93feb21481a8547f267166f627f0 /cmd-send-prefix.c
parent7325fea37dd75ac89828c6cfdfbcbd8d54548241 (diff)
Easy bits of arg printing for list-keys.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r--cmd-send-prefix.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd-send-prefix.c b/cmd-send-prefix.c
index 117ec4c2..c8df7da6 100644
--- a/cmd-send-prefix.c
+++ b/cmd-send-prefix.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-send-prefix.c,v 1.12 2008-06-03 21:42:37 nicm Exp $ */
+/* $Id: cmd-send-prefix.c,v 1.13 2008-06-05 16:35:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -24,7 +24,7 @@
* Send prefix key as a key.
*/
-void cmd_send_prefix_exec(void *, struct cmd_ctx *);
+void cmd_send_prefix_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_send_prefix_entry = {
"send-prefix", NULL,
@@ -35,16 +35,17 @@ const struct cmd_entry cmd_send_prefix_entry = {
cmd_windowonly_send,
cmd_windowonly_recv,
cmd_windowonly_free,
+ NULL,
NULL
};
void
-cmd_send_prefix_exec(void *ptr, struct cmd_ctx *ctx)
+cmd_send_prefix_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct session *s;
struct winlink *wl;
- if ((wl = cmd_windowonly_get(ptr, ctx, &s)) == NULL)
+ if ((wl = cmd_windowonly_get(self, ctx, &s)) == NULL)
return;
window_key(wl->window, options_get_number(&s->options, "prefix-key"));