aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 55f21c187..35694fbe3 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1386,8 +1386,6 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1386 1386
1387 /* Make sure fd 0,1,2 are open */ 1387 /* Make sure fd 0,1,2 are open */
1388 bb_sanitize_stdio(); 1388 bb_sanitize_stdio();
1389 /* Equivalent of doing a fflush after every \n */
1390 setlinebuf(stdout);
1391 /* Create pidfile */ 1389 /* Create pidfile */
1392 write_pidfile(client_config.pidfile); 1390 write_pidfile(client_config.pidfile);
1393 /* Goes to stdout (unless NOMMU) and possibly syslog */ 1391 /* Goes to stdout (unless NOMMU) and possibly syslog */
@@ -1732,8 +1730,10 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1732 /* paranoia: must not be too small and not prone to overflows */ 1730 /* paranoia: must not be too small and not prone to overflows */
1733 if (lease_seconds < 0x10) 1731 if (lease_seconds < 0x10)
1734 lease_seconds = 0x10; 1732 lease_seconds = 0x10;
1735 if (lease_seconds > 0x7fffffff / 1000) 1733 //if (lease_seconds > 0x7fffffff)
1736 lease_seconds = 0x7fffffff / 1000; 1734 // lease_seconds = 0x7fffffff;
1735 //^^^not necessary since "timeout = lease_seconds / 2"
1736 //does not overflow even for 0xffffffff.
1737 } 1737 }
1738#if ENABLE_FEATURE_UDHCPC_ARPING 1738#if ENABLE_FEATURE_UDHCPC_ARPING
1739 if (opt & OPT_a) { 1739 if (opt & OPT_a) {