From: Yu Watanabe Date: Sun, 17 Jan 2021 16:27:14 +0000 (+0900) Subject: core: make config_parse_documentation() explicitly return 0 on success X-Git-Tag: v248-rc1~311^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c6493e59ea57e3c7c4794a39ad4adb56d54371b;p=thirdparty%2Fsystemd.git core: make config_parse_documentation() explicitly return 0 on success --- diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index bc87b8d372f..dd31364a76f 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -3096,16 +3096,17 @@ int config_parse_unit_requires_mounts_for( } } -int config_parse_documentation(const char *unit, - const char *filename, - unsigned line, - const char *section, - unsigned section_line, - const char *lvalue, - int ltype, - const char *rvalue, - void *data, - void *userdata) { +int config_parse_documentation( + const char *unit, + const char *filename, + unsigned line, + const char *section, + unsigned section_line, + const char *lvalue, + int ltype, + const char *rvalue, + void *data, + void *userdata) { Unit *u = userdata; int r; @@ -3139,7 +3140,7 @@ int config_parse_documentation(const char *unit, if (b) *b = NULL; - return r; + return 0; } #if HAVE_SECCOMP