summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2023-04-11 17:25:42 +0200
committerDavid Tardon <dtardon@redhat.com>2023-04-12 09:53:55 +0200
commit5e891cbb5cfb0de54588988f1c9969244a9317a3 (patch)
tree9fd735d8f5c3e0d76d8530e259baae842c6fef6d /src/portable
parentf643ca1767a52918c69c324f2ed6dbdfa005f04e (diff)
downloadsystemd-5e891cbb5cfb0de54588988f1c9969244a9317a3.tar.gz
tree-wide: drop unneeded output params
Neither of the callers of bus_deserialize_and_dump_unit_file_changes() touches the changes array, so let's simplify things and keep it internal to the function.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/portablectl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c
index bb9182ad42..eec9c63d0b 100644
--- a/src/portable/portablectl.c
+++ b/src/portable/portablectl.c
@@ -556,13 +556,9 @@ static int maybe_enable_disable(sd_bus *bus, const char *path, bool enable) {
_cleanup_(sd_bus_message_unrefp) sd_bus_message *m = NULL, *reply = NULL;
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_strv_free_ char **names = NULL;
- InstallChange *changes = NULL;
const uint64_t flags = UNIT_FILE_PORTABLE | (arg_runtime ? UNIT_FILE_RUNTIME : 0);
- size_t n_changes = 0;
int r;
- CLEANUP_ARRAY(changes, n_changes, install_changes_free);
-
if (!arg_enable)
return 0;
@@ -599,7 +595,7 @@ static int maybe_enable_disable(sd_bus *bus, const char *path, bool enable) {
return bus_log_parse_error(r);
}
- (void) bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet, &changes, &n_changes);
+ (void) bus_deserialize_and_dump_unit_file_changes(reply, arg_quiet);
return 0;
}