]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/commands.c
Unroll IN_SET since the max usage is 2 elements check
[mirror_lxc.git] / src / lxc / commands.c
index 946c72e959478ebc022a6cc8f838c1b7a3f373ff..07be1d53539a97373c00749af81277958e4a5bed 100644 (file)
@@ -508,7 +508,7 @@ static ssize_t lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, bool *stopped,
 
        client_fd = lxc_cmd_send(name, cmd, lxcpath, hashed_sock_name);
        if (client_fd < 0) {
-               if (IN_SET(errno, ECONNREFUSED, EPIPE))
+               if (errno == ECONNREFUSED || errno == EPIPE)
                        *stopped = 1;
 
                return systrace("Command \"%s\" failed to connect command socket", lxc_cmd_str(cmd->req.cmd));