aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/udhcp/dhcpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 4b3ed240c..2de074f9b 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -413,7 +413,8 @@ int udhcpd_main(int argc UNUSED_PARAM, char **argv)
413 413
414 max_sock = udhcp_sp_fd_set(&rfds, server_socket); 414 max_sock = udhcp_sp_fd_set(&rfds, server_socket);
415 if (server_config.auto_time) { 415 if (server_config.auto_time) {
416 tv.tv_sec = timeout_end - monotonic_sec(); 416 /* cast to signed is essential if tv_sec is wider than int */
417 tv.tv_sec = (int)(timeout_end - monotonic_sec());
417 tv.tv_usec = 0; 418 tv.tv_usec = 0;
418 } 419 }
419 retval = 0; 420 retval = 0;