From: David Tardon Date: Mon, 14 Aug 2023 14:09:16 +0000 (+0200) Subject: systemctl-show: rename cleanup function X-Git-Tag: v255-rc1~698^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e8c5e9766a1aa793ce17e235f4bc97d70ecabbb;p=thirdparty%2Fsystemd.git systemctl-show: rename cleanup function --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 38cd4256e11..e1133963315 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -278,7 +278,7 @@ typedef struct UnitStatusInfo { LIST_HEAD(ExecStatusInfo, exec_status_info_list); } UnitStatusInfo; -static void unit_status_info_free(UnitStatusInfo *info) { +static void unit_status_info_done(UnitStatusInfo *info) { strv_free(info->documentation); strv_free(info->dropin_paths); strv_free(info->triggered_by); @@ -2055,7 +2055,7 @@ static int show_one( _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL; _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_set_free_ Set *found_properties = NULL; - _cleanup_(unit_status_info_free) UnitStatusInfo info = { + _cleanup_(unit_status_info_done) UnitStatusInfo info = { .runtime_max_sec = USEC_INFINITY, .memory_current = UINT64_MAX, .memory_high = CGROUP_LIMIT_MAX,