diff options
author | Mike Yuan <me@yhndnzj.com> | 2023-11-23 13:42:11 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-11-23 13:42:43 +0100 |
commit | 5cacac04fa7a7f2203a13a69d41201c3771a719f (patch) | |
tree | 02824dcc464687c25bcbb2ae69a89e37baa7f78c | |
parent | exec-util: don't say sd-executor to avoid ambiguity (diff) | |
download | systemd-5cacac04fa7a7f2203a13a69d41201c3771a719f.tar.xz systemd-5cacac04fa7a7f2203a13a69d41201c3771a719f.zip |
core/manager: rename result parameter to ret
-rw-r--r-- | src/core/manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index e61ebee253..8c8a25826e 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -847,12 +847,12 @@ static int compare_job_priority(const void *a, const void *b) { return unit_compare_priority(x->unit, y->unit); } -int manager_new(RuntimeScope runtime_scope, ManagerTestRunFlags test_run_flags, Manager **_m) { +int manager_new(RuntimeScope runtime_scope, ManagerTestRunFlags test_run_flags, Manager **ret) { _cleanup_(manager_freep) Manager *m = NULL; int r; - assert(_m); assert(IN_SET(runtime_scope, RUNTIME_SCOPE_SYSTEM, RUNTIME_SCOPE_USER)); + assert(ret); m = new(Manager, 1); if (!m) @@ -1054,7 +1054,7 @@ int manager_new(RuntimeScope runtime_scope, ManagerTestRunFlags test_run_flags, /* Note that we do not set up the notify fd here. We do that after deserialization, * since they might have gotten serialized across the reexec. */ - *_m = TAKE_PTR(m); + *ret = TAKE_PTR(m); return 0; } |