]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: use _cleanup_set_free_ instread of _cleanup_(set_freep)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 May 2018 05:13:57 +0000 (14:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 May 2018 05:13:57 +0000 (14:13 +0900)
src/core/dbus-unit.c
src/core/device.c
src/core/swap.c
src/core/unit.c

index 3402488500805dd782d7a4cea71b62ca2e406425..0efba47b1c5f5e34be34314194c8f6e1a8dd0898 100644 (file)
@@ -928,7 +928,7 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
 
 int bus_unit_method_get_processes(sd_bus_message *message, void *userdata, sd_bus_error *error) {
         _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
-        _cleanup_(set_freep) Set *pids = NULL;
+        _cleanup_set_free_ Set *pids = NULL;
         Unit *u = userdata;
         pid_t pid;
         int r;
@@ -1015,7 +1015,7 @@ static int property_get_ip_counter(
 int bus_unit_method_attach_processes(sd_bus_message *message, void *userdata, sd_bus_error *error) {
 
         _cleanup_(sd_bus_creds_unrefp) sd_bus_creds *creds = NULL;
-        _cleanup_(set_freep) Set *pids = NULL;
+        _cleanup_set_free_ Set *pids = NULL;
         Unit *u = userdata;
         const char *path;
         int r;
index 0bf329c3d244f17704c2ebdde483189839c774d5..3387820a6dbbfab2be0c333878744982ebd10d52 100644 (file)
@@ -704,7 +704,7 @@ static Unit *device_following(Unit *u) {
 
 static int device_following_set(Unit *u, Set **_set) {
         Device *d = DEVICE(u), *other;
-        _cleanup_(set_freep) Set *set = NULL;
+        _cleanup_set_free_ Set *set = NULL;
         int r;
 
         assert(d);
index 965d96f4da12d9a50297caf0faa03c6fceed0a2a..618a8d553dc258e5b4687360e939dfdffb8ed38f 100644 (file)
@@ -1240,7 +1240,7 @@ static Unit *swap_following(Unit *u) {
 
 static int swap_following_set(Unit *u, Set **_set) {
         Swap *s = SWAP(u), *other;
-        _cleanup_(set_freep) Set *set = NULL;
+        _cleanup_set_free_ Set *set = NULL;
         int r;
 
         assert(s);
index 5b7beca369e1756c1478734b53137979a312b0d5..13e00a25c8233f49190f1ffd17071385fe46ae14 100644 (file)
@@ -3815,7 +3815,7 @@ int unit_kill(Unit *u, KillWho w, int signo, sd_bus_error *error) {
 }
 
 static Set *unit_pid_set(pid_t main_pid, pid_t control_pid) {
-        _cleanup_(set_freep) Set *pid_set = NULL;
+        _cleanup_set_free_ Set *pid_set = NULL;
         int r;
 
         pid_set = set_new(NULL);