From: Christian Brauner Date: Sat, 7 Dec 2019 16:40:05 +0000 (+0100) Subject: start: replace compiler attributes X-Git-Tag: lxc-4.0.0~78^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ff57a59182521e50126c333f84a1d9d6e4615e6;p=thirdparty%2Flxc.git start: replace compiler attributes Signed-off-by: Christian Brauner --- diff --git a/src/lxc/start.c b/src/lxc/start.c index db57600b0..3dd96bc35 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1119,8 +1119,8 @@ void lxc_abort(const char *name, struct lxc_handler *handler) static int do_start(void *data) { struct lxc_handler *handler = data; - ATTR_UNUSED __do_close_prot_errno int data_sock0 = handler->data_sock[0], - data_sock1 = handler->data_sock[1]; + __unused __do_close_prot_errno int data_sock0 = handler->data_sock[0], + data_sock1 = handler->data_sock[1]; __do_close_prot_errno int status_fd = -EBADF; int ret; uid_t new_uid; @@ -1132,7 +1132,7 @@ static int do_start(void *data) lxc_sync_fini_parent(handler); - if (lxc_abstract_unix_recv_fds(handler->data_sock[1], &status_fd, 1, NULL, 0) < 0) { + if (lxc_abstract_unix_recv_fds(data_sock1, &status_fd, 1, NULL, 0) < 0) { ERROR("Failed to receive status file descriptor to child process"); goto out_warn_father; }