]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/pretty-print: rename output parameters
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Feb 2024 09:36:52 +0000 (10:36 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2024 17:49:44 +0000 (18:49 +0100)
src/shared/pretty-print.c

index 3de193e264242a87a7f68049000c635c227ee64a..f3a8891a79e96c3a039a5c5f28b3adebb4bc94b9 100644 (file)
@@ -308,7 +308,7 @@ void print_separator(void) {
                 fputs("\n\n", stdout);
 }
 
-static int guess_type(const char **name, char ***prefixes, bool *is_collection, const char **extension) {
+static int guess_type(const char **name, char ***ret_prefixes, bool *ret_is_collection, const char **ret_extension) {
         /* Try to figure out if name is like tmpfiles.d/ or systemd/system-presets/,
          * i.e. a collection of directories without a main config file.
          * Incidentally, all those formats don't use sections. So we return a single
@@ -355,9 +355,9 @@ static int guess_type(const char **name, char ***prefixes, bool *is_collection,
                 ext = ".preset";
         }
 
-        *prefixes = (char**) (run ? run_prefixes : std_prefixes);
-        *is_collection = coll;
-        *extension = ext;
+        *ret_prefixes = (char**) (run ? run_prefixes : std_prefixes);
+        *ret_is_collection = coll;
+        *ret_extension = ext;
         return 0;
 }