]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup get_config_seccomp_allow_nesting()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:18:24 +0000 (17:18 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:18:24 +0000 (17:18 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 09007d90dc6a04617ab2c8d4ec262b64eaa6a661..1a8b0e85ab264128f2d0631d9ecb0bfa275041e5 100644 (file)
@@ -4111,8 +4111,7 @@ static int get_config_seccomp_allow_nesting(const char *key, char *retv,
 #ifdef HAVE_SECCOMP
        return lxc_get_conf_int(c, retv, inlen, c->seccomp.allow_nesting);
 #else
-       errno = ENOSYS;
-       return -1;
+       return ret_errno(ENOSYS);
 #endif
 }