From: Christian Brauner Date: Tue, 8 Dec 2020 16:20:03 +0000 (+0100) Subject: confile: cleanup get_config_sysctl() X-Git-Tag: lxc-5.0.0~330^2~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b1ef6aa83549792d5d3fe21d6f5a3d4232bccd2;p=thirdparty%2Flxc.git confile: cleanup get_config_sysctl() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 883c74448..2166d7e7f 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -4363,7 +4363,7 @@ static int get_config_sysctl(const char *key, char *retv, int inlen, else if (strncmp(key, "lxc.sysctl.", STRLITERALLEN("lxc.sysctl.")) == 0) key += STRLITERALLEN("lxc.sysctl."); else - return -1; + return ret_errno(EINVAL); lxc_list_for_each(it, &c->sysctls) { struct lxc_sysctl *elem = it->elem;