]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
proc-cmdline: rename variable
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Mar 2023 19:32:23 +0000 (04:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 Mar 2023 06:20:05 +0000 (15:20 +0900)
src/basic/proc-cmdline.c

index 0e48b24a86f6757e3910379d18e19748e9faa5ed..1def562e1888c3015c591afa9692f42785979d90 100644 (file)
@@ -174,7 +174,7 @@ bool proc_cmdline_key_streq(const char *x, const char *y) {
 }
 
 static int cmdline_get_key(const char *line, const char *key, ProcCmdlineFlags flags, char **ret_value) {
-        _cleanup_free_ char *ret = NULL;
+        _cleanup_free_ char *v = NULL;
         bool found = false;
         const char *p;
         int r;
@@ -200,7 +200,7 @@ static int cmdline_get_key(const char *line, const char *key, ProcCmdlineFlags f
                                 continue;
 
                         if (*e == '=') {
-                                r = free_and_strdup(&ret, e+1);
+                                r = free_and_strdup(&v, e+1);
                                 if (r < 0)
                                         return r;
 
@@ -218,7 +218,7 @@ static int cmdline_get_key(const char *line, const char *key, ProcCmdlineFlags f
         }
 
         if (ret_value)
-                *ret_value = TAKE_PTR(ret);
+                *ret_value = TAKE_PTR(v);
 
         return found;
 }