confile: cleanup get_config_sysctl()

parent 4c12267e
...@@ -4363,7 +4363,7 @@ static int get_config_sysctl(const char *key, char *retv, int inlen, ...@@ -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) else if (strncmp(key, "lxc.sysctl.", STRLITERALLEN("lxc.sysctl.")) == 0)
key += STRLITERALLEN("lxc.sysctl."); key += STRLITERALLEN("lxc.sysctl.");
else else
return -1; return ret_errno(EINVAL);
lxc_list_for_each(it, &c->sysctls) { lxc_list_for_each(it, &c->sysctls) {
struct lxc_sysctl *elem = it->elem; struct lxc_sysctl *elem = it->elem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment