mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
systemctl: rename unit_file_find_path()'s return paramete to indicate that it is one
This commit is contained in:
parent
ecb1a44cc9
commit
c45e7e0cbf
@ -2415,7 +2415,7 @@ static void warn_unit_file_changed(const char *name) {
|
||||
arg_scope == UNIT_FILE_SYSTEM ? "" : " --user");
|
||||
}
|
||||
|
||||
static int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **unit_path) {
|
||||
static int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **ret_unit_path) {
|
||||
char **p;
|
||||
|
||||
assert(lp);
|
||||
@ -2437,8 +2437,8 @@ static int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **un
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to access path \"%s\": %m", path);
|
||||
|
||||
if (unit_path)
|
||||
*unit_path = TAKE_PTR(lpath);
|
||||
if (ret_unit_path)
|
||||
*ret_unit_path = TAKE_PTR(lpath);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user