mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
sd-dhcp-server: remove unused cleanup function
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.
This commit is contained in:
parent
9bfcda9528
commit
88675ae97c
@ -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) {
|
||||
DHCPLease *lease;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user