From: Christian Brauner Date: Thu, 25 Feb 2021 09:19:02 +0000 (+0100) Subject: commands: port lxc_cmd_get_seccomp_notify_fd() to new helpers X-Git-Tag: lxc-5.0.0~267^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0af9082578c146700f52f3e49364198b6d8a9b8;p=thirdparty%2Flxc.git commands: port lxc_cmd_get_seccomp_notify_fd() to new helpers Signed-off-by: Christian Brauner --- diff --git a/src/lxc/commands.c b/src/lxc/commands.c index 8bfdd8216..2b0c39f6b 100644 --- a/src/lxc/commands.c +++ b/src/lxc/commands.c @@ -661,12 +661,10 @@ int lxc_cmd_get_seccomp_notify_fd(const char *name, const char *lxcpath) { #ifdef HAVE_SECCOMP_NOTIFY bool stopped = false; - struct lxc_cmd_rr cmd = { - .req = { - .cmd = LXC_CMD_GET_SECCOMP_NOTIFY_FD, - }, - }; int ret; + struct lxc_cmd_rr cmd; + + lxc_cmd_init(&cmd, LXC_CMD_GET_SECCOMP_NOTIFY_FD); ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL); if (ret < 0)