diff options
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index 9d5633b75..bddf3e141 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c @@ -390,7 +390,7 @@ void FAST_FUNC write_leases(void) void FAST_FUNC read_leases(const char *file) { - struct dhcpOfferedAddr lease; + struct dyn_lease lease; int64_t written_at, time_passed; int fd; #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 @@ -420,7 +420,7 @@ void FAST_FUNC read_leases(const char *file) continue; /* NB: add_lease takes "relative time", IOW, * lease duration, not lease deadline. */ - if (!(add_lease(lease.lease_mac16, lease.lease_nip, expires, lease.hostname))) { + if (!(add_lease(lease.lease_mac, lease.lease_nip, expires, lease.hostname))) { bb_error_msg("too many leases while loading %s", file); break; } |