summaryrefslogtreecommitdiffstats
path: root/cmd-has-session.c
diff options
context:
space:
mode:
authornicm <nicm>2008-06-05 16:35:31 +0000
committernicm <nicm>2008-06-05 16:35:31 +0000
commit29b63e060bff090b98425e953af089cedaea8ef1 (patch)
tree58d4810c8c1ec7f27c429b6b10eb43ef974a5949 /cmd-has-session.c
parent1f17000d7f4e3b12f8c035c8209e72568b865b6e (diff)
downloadtmux-old-29b63e060bff090b98425e953af089cedaea8ef1.tar.gz
tmux-old-29b63e060bff090b98425e953af089cedaea8ef1.tar.bz2
tmux-old-29b63e060bff090b98425e953af089cedaea8ef1.zip
Easy bits of arg printing for list-keys.
Diffstat (limited to 'cmd-has-session.c')
-rw-r--r--cmd-has-session.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd-has-session.c b/cmd-has-session.c
index ddac8451..b53825f6 100644
--- a/cmd-has-session.c
+++ b/cmd-has-session.c
@@ -24,7 +24,7 @@
* Cause client to report an error and exit with 1 if session doesn't exist.
*/
-void cmd_has_session_exec(void *, struct cmd_ctx *);
+void cmd_has_session_exec(struct cmd *, struct cmd_ctx *);
const struct cmd_entry cmd_has_session_entry = {
"has-session", "has",
@@ -35,15 +35,16 @@ const struct cmd_entry cmd_has_session_entry = {
cmd_sessiononly_send,
cmd_sessiononly_recv,
cmd_sessiononly_free,
- NULL
+ NULL,
+ cmd_sessiononly_print
};
void
-cmd_has_session_exec(void *ptr, struct cmd_ctx *ctx)
+cmd_has_session_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct session *s;
- if ((s = cmd_sessiononly_get(ptr, ctx)) == NULL)
+ if ((s = cmd_sessiononly_get(self, ctx)) == NULL)
return;
if (ctx->cmdclient != NULL)