From e57ac1b017e8f52be6d6066e6dc61e80404aa9df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 29 Apr 2020 14:53:26 +0200 Subject: [PATCH] tree-wide: use _cleanup_set_free_ where appropriate If we already have the helper defined, let's use it instead of open-coding. --- src/core/dbus-unit.c | 2 +- src/test/test-prioq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 75e90606495..dedc3956664 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -1724,7 +1724,7 @@ int bus_unit_queue_job( _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL; _cleanup_free_ char *job_path = NULL, *unit_path = NULL; - _cleanup_(set_freep) Set *affected = NULL; + _cleanup_set_free_ Set *affected = NULL; Iterator i; Job *j, *a; int r; diff --git a/src/test/test-prioq.c b/src/test/test-prioq.c index 21d5b44fbb6..50f66cb970b 100644 --- a/src/test/test-prioq.c +++ b/src/test/test-prioq.c @@ -60,7 +60,7 @@ DEFINE_PRIVATE_HASH_OPS(test_hash_ops, struct test, test_hash, test_compare); static void test_struct(void) { _cleanup_(prioq_freep) Prioq *q = NULL; - _cleanup_(set_freep) Set *s = NULL; + _cleanup_set_free_ Set *s = NULL; unsigned previous = 0, i; struct test *t; -- 2.47.3