Move the single command flag (CMD_CONTROL) into the shared flags.

This commit is contained in:
nicm
2019-05-18 21:14:10 +00:00
parent 9b83b1daa6
commit 82ebd98c5f
3 changed files with 4 additions and 7 deletions

View File

@ -266,13 +266,14 @@ static enum cmd_retval
cmdq_fire_command(struct cmdq_item *item)
{
struct client *c = item->client;
struct cmdq_shared *shared = item->shared;
struct cmd *cmd = item->cmd;
const struct cmd_entry *entry = cmd->entry;
enum cmd_retval retval;
struct cmd_find_state *fsp, fs;
int flags;
flags = !!(cmd->flags & CMD_CONTROL);
flags = !!(shared->flags & CMDQ_SHARED_CONTROL);
cmdq_guard(item, "begin", flags);
if (item->client == NULL)