diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 16:35:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-05 16:35:32 +0000 |
commit | 642c0b00ab43079cd251ec9616963b8a806b3464 (patch) | |
tree | 40f2bcf2f39d93feb21481a8547f267166f627f0 /cmd-send-prefix.c | |
parent | 7325fea37dd75ac89828c6cfdfbcbd8d54548241 (diff) | |
download | rtmux-642c0b00ab43079cd251ec9616963b8a806b3464.tar.gz rtmux-642c0b00ab43079cd251ec9616963b8a806b3464.tar.bz2 rtmux-642c0b00ab43079cd251ec9616963b8a806b3464.zip |
Easy bits of arg printing for list-keys.
Diffstat (limited to 'cmd-send-prefix.c')
-rw-r--r-- | cmd-send-prefix.c | 9 |
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")); |