]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: make config_parse_documentation() explicitly return 0 on success
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Jan 2021 16:27:14 +0000 (01:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Jan 2021 16:27:14 +0000 (01:27 +0900)
src/core/load-fragment.c

index bc87b8d372f743ab2af4be8e53f2af9f9ed1e8d4..dd31364a76f8e56a6f0a9e164fa63977a5717e1b 100644 (file)
@@ -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