From: Christian Brauner Date: Tue, 15 Dec 2020 10:54:34 +0000 (+0100) Subject: confile: cleanup set_config_hooks() X-Git-Tag: lxc-5.0.0~327^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=667fcc0e3ca733c62fc0f68606b437225b3287d5;p=thirdparty%2Flxc.git confile: cleanup set_config_hooks() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index a5cb64e50..b52bd11b4 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1214,7 +1214,7 @@ static int set_config_hooks(const char *key, const char *value, else if (strcmp(key + 9, "destroy") == 0) return add_hook(lxc_conf, LXCHOOK_DESTROY, move_ptr(copy)); - return -1; + return ret_errno(EINVAL); } static int set_config_hooks_version(const char *key, const char *value,