projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb1a44
)
systemctl: rename unit_file_find_path()'s return paramete to indicate that it is one
author
Lennart Poettering
<lennart@poettering.net>
Tue, 27 Nov 2018 16:05:27 +0000
(17:05 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 29 Nov 2018 10:15:45 +0000
(11:15 +0100)
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index
38545e8
..
328c11a
100644
(file)
--- 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;
}