udhcp: cleanup of static lease handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index 403a8bc..c318856 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -159,8 +159,8 @@
if ((addr & 0xff) == 0xff)
continue;
net_addr = htonl(addr);
- /* addr has a static lease? */
- if (reservedIp(server_config.static_leases, net_addr))
+ /* is this a static lease addr? */
+ if (is_nip_reserved(server_config.static_leases, net_addr))
continue;
lease = find_lease_by_yiaddr(net_addr);