summaryrefslogtreecommitdiffstats
path: root/src/basic/proc-cmdline.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-03-22 20:32:23 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-24 07:20:05 +0100
commitb3e9a267ce2b1bc76a0db9a9a2cff25128d824e7 (patch)
treed8452c422f272d311be80cb6689a840fe094535d /src/basic/proc-cmdline.c
parentproc-cmdline: insert an empty line between variable declaration and assertion (diff)
downloadsystemd-b3e9a267ce2b1bc76a0db9a9a2cff25128d824e7.tar.xz
systemd-b3e9a267ce2b1bc76a0db9a9a2cff25128d824e7.zip
proc-cmdline: rename variable
Diffstat (limited to '')
-rw-r--r--src/basic/proc-cmdline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/proc-cmdline.c b/src/basic/proc-cmdline.c
index 0e48b24a86..1def562e18 100644
--- a/src/basic/proc-cmdline.c
+++ b/src/basic/proc-cmdline.c
@@ -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;
}