[systemd-devel] [PATCH] sd-dhcp-server: remove unused cleanup function
Thomas H.P. Andersen
phomes at gmail.com
Fri Jun 13 12:04:47 PDT 2014
From: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Removes _cleanup_dhcp_lease_free_. While the automatic cleanup
functions are great to have this one is never used and causes
a warning in clang.
---
src/libsystemd-network/sd-dhcp-server.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c
index 4ce1054..17c19cc 100644
--- a/src/libsystemd-network/sd-dhcp-server.c
+++ b/src/libsystemd-network/sd-dhcp-server.c
@@ -105,9 +105,6 @@ static void dhcp_lease_free(DHCPLease *lease) {
free(lease);
}
-DEFINE_TRIVIAL_CLEANUP_FUNC(DHCPLease*, dhcp_lease_free);
-#define _cleanup_dhcp_lease_free_ _cleanup_(dhcp_lease_freep)
-
sd_dhcp_server *sd_dhcp_server_unref(sd_dhcp_server *server) {
if (server && REFCNT_DEC(server->n_ref) <= 0) {
DHCPLease *lease;
--
1.9.3
More information about the systemd-devel
mailing list