aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-19 04:35:16 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-19 04:35:16 +0200
commit4abfc2642dcff669798364835f53c804b3d7bcef (patch)
tree153f2b71681f85519f55c176d37ccd42adacb35c
parent753a3ce73ea861cd6933d9d4888db63a10b7d1d5 (diff)
downloadbusybox-w32-4abfc2642dcff669798364835f53c804b3d7bcef.tar.gz
busybox-w32-4abfc2642dcff669798364835f53c804b3d7bcef.tar.bz2
busybox-w32-4abfc2642dcff669798364835f53c804b3d7bcef.zip
udhcpc: small simplification
function old new delta udhcpc_main 2401 2398 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/udhcp/dhcpc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 636061818..fbb645749 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -628,10 +628,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
628 inet_ntoa(temp_addr), (unsigned)lease_seconds); 628 inet_ntoa(temp_addr), (unsigned)lease_seconds);
629 } 629 }
630 requested_ip = packet.yiaddr; 630 requested_ip = packet.yiaddr;
631 udhcp_run_script(&packet, 631 udhcp_run_script(&packet, state == REQUESTING ? "bound" : "renew");
632 ((state >= RENEWING && state <= RENEW_REQUESTED)
633 ? "renew" : "bound")
634 );
635 632
636 state = BOUND; 633 state = BOUND;
637 change_listen_mode(LISTEN_NONE); 634 change_listen_mode(LISTEN_NONE);