diff options
author | nicm <nicm> | 2019-05-18 21:14:10 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-18 21:14:10 +0000 |
commit | 82ebd98c5f874cd10365d9563feccfbb8da188f4 (patch) | |
tree | f1063858add8b47a2a34ba7a1df03f8c9b39867d /control.c | |
parent | 9b83b1daa6caee4d2c665c26da37866712c555a8 (diff) | |
download | rtmux-82ebd98c5f874cd10365d9563feccfbb8da188f4.tar.gz rtmux-82ebd98c5f874cd10365d9563feccfbb8da188f4.tar.bz2 rtmux-82ebd98c5f874cd10365d9563feccfbb8da188f4.zip |
Move the single command flag (CMD_CONTROL) into the shared flags.
Diffstat (limited to 'control.c')
-rw-r--r-- | control.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } |