summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/control.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-05-18 21:14:10 +0000
committernicm <nicm@openbsd.org>2019-05-18 21:14:10 +0000
commitf3364c199b677c2f44b4adf2d218efc41adb1bcc (patch)
tree89908e58e738db493b614ecb97f0107a8877c1db /usr.bin/tmux/control.c
parentUnveil tetris. (diff)
downloadwireguard-openbsd-f3364c199b677c2f44b4adf2d218efc41adb1bcc.tar.xz
wireguard-openbsd-f3364c199b677c2f44b4adf2d218efc41adb1bcc.zip
Move the single command flag (CMD_CONTROL) into the shared flags.
Diffstat (limited to 'usr.bin/tmux/control.c')
-rw-r--r--usr.bin/tmux/control.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/control.c b/usr.bin/tmux/control.c
index cd24941e092..79a27eb7e78 100644
--- a/usr.bin/tmux/control.c
+++ b/usr.bin/tmux/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.20 2017/01/15 22:00:56 nicm Exp $ */
+/* $OpenBSD: control.c,v 1.21 2019/05/18 21:14:10 nicm Exp $ */
/*
* Copyright (c) 2012 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -70,7 +70,6 @@ control_callback(struct client *c, int closed, __unused void *data)
{
char *line, *cause;
struct cmd_list *cmdlist;
- struct cmd *cmd;
struct cmdq_item *item;
if (closed)
@@ -90,9 +89,8 @@ control_callback(struct client *c, int closed, __unused void *data)
item = cmdq_get_callback(control_error, cause);
cmdq_append(c, item);
} else {
- TAILQ_FOREACH(cmd, &cmdlist->list, qentry)
- cmd->flags |= CMD_CONTROL;
item = cmdq_get_command(cmdlist, NULL, NULL, 0);
+ item->shared->flags |= CMDQ_SHARED_CONTROL;
cmdq_append(c, item);
cmd_list_free(cmdlist);
}