chiark / gitweb /
sd-dhcp-server: remove unused cleanup function
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 20 Jun 2014 17:32:51 +0000 (19:32 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jun 2014 17:32:51 +0000 (19:32 +0200)
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

index 5bdcf86..e4236e8 100644 (file)
@@ -105,9 +105,6 @@ static void dhcp_lease_free(DHCPLease *lease) {
         free(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) {
         DHCPLease *lease;
 
 sd_dhcp_server *sd_dhcp_server_unref(sd_dhcp_server *server) {
         DHCPLease *lease;