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

index 1a8b0e85ab264128f2d0631d9ecb0bfa275041e5..0262e9ec4dc3178c1d5f7c617d86730eb424c8b3 100644 (file)
@@ -4121,7 +4121,7 @@ static int get_config_seccomp_notify_cookie(const char *key, char *retv, int inl
 #ifdef HAVE_SECCOMP_NOTIFY
        return lxc_get_conf_str(retv, inlen, c->seccomp.notifier.cookie);
 #else
-       return ret_set_errno(-1, ENOSYS);
+       return ret_errno(ENOSYS);
 #endif
 }