summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-10-16 19:04:06 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-10-16 19:04:06 +0000
commit3f0dad54b9b7fbe7e951cb592fa147fbdc7bdde6 (patch)
treea685fa2872c014d3bc9be168c7338d3974fcab39 /usr.bin/tmux/server-client.c
parentf71299d662dee69becff6a71ecf049a77fbacd95 (diff)
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 243e8233ea4..d9da28fae69 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.194 2016/10/16 17:55:14 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.195 2016/10/16 19:04:05 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1254,9 +1254,9 @@ server_client_dispatch(struct imsg *imsg, void *arg)
/* Callback when command is done. */
static enum cmd_retval
-server_client_command_done(struct cmd_q *cmdq, __unused void *data)
+server_client_command_done(struct cmdq_item *item, __unused void *data)
{
- struct client *c = cmdq->client;
+ struct client *c = item->client;
if (~c->flags & CLIENT_ATTACHED)
c->flags |= CLIENT_EXIT;
@@ -1265,11 +1265,11 @@ server_client_command_done(struct cmd_q *cmdq, __unused void *data)
/* Show an error message. */
static enum cmd_retval
-server_client_command_error(struct cmd_q *cmdq, void *data)
+server_client_command_error(struct cmdq_item *item, void *data)
{
char *error = data;
- cmdq_error(cmdq, "%s", error);
+ cmdq_error(item, "%s", error);
free(error);
return (CMD_RETURN_NORMAL);