From 8c6493e59ea57e3c7c4794a39ad4adb56d54371b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 18 Jan 2021 01:27:14 +0900 Subject: [PATCH] core: make config_parse_documentation() explicitly return 0 on success --- src/core/load-fragment.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) 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 -- 2.47.3