aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/leases.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/leases.c')
-rw-r--r--networking/udhcp/leases.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index 291ae8053..06bc086ba 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -22,7 +22,7 @@ static struct dhcpOfferedAddr *oldest_expired_lease(void)
22 for (i = 0; i < server_config.max_leases; i++) { 22 for (i = 0; i < server_config.max_leases; i++) {
23 if (leases[i].expires < oldest_time) { 23 if (leases[i].expires < oldest_time) {
24 oldest_time = leases[i].expires; 24 oldest_time = leases[i].expires;
25 oldest_lease = &(leases[i]); 25 oldest_lease = &leases[i];
26 } 26 }
27 } 27 }
28 return oldest_lease; 28 return oldest_lease;
@@ -142,7 +142,7 @@ static int nobody_responds_to_arp(uint32_t addr, const uint8_t *safe_mac)
142} 142}
143 143
144 144
145/* Find a new usable (we think) address. */ 145/* Find a new usable (we think) address */
146uint32_t FAST_FUNC find_free_or_expired_address(const uint8_t *chaddr) 146uint32_t FAST_FUNC find_free_or_expired_address(const uint8_t *chaddr)
147{ 147{
148 uint32_t addr; 148 uint32_t addr;