From c45e7e0cbf1060d096680cd0c7fe1fce64a69999 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Nov 2018 17:05:27 +0100 Subject: [PATCH] systemctl: rename unit_file_find_path()'s return paramete to indicate that it is one --- src/systemctl/systemctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 38545e8f5e..328c11a2cd 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -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; }