proc-cmdline: rename variable

This commit is contained in:
Yu Watanabe
2023-03-24 15:20:05 +09:00
parent a175b98171
commit b3e9a267ce
+3 -3
View 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;
}