mirror of https://github.com/mirror/busybox.git
udhcpc: small simplification
function old new delta udhcpc_main 2401 2398 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_15_stable
parent
753a3ce73e
commit
4abfc2642d
|
@ -628,10 +628,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
|
|||
inet_ntoa(temp_addr), (unsigned)lease_seconds);
|
||||
}
|
||||
requested_ip = packet.yiaddr;
|
||||
udhcp_run_script(&packet,
|
||||
((state >= RENEWING && state <= RENEW_REQUESTED)
|
||||
? "renew" : "bound")
|
||||
);
|
||||
udhcp_run_script(&packet, state == REQUESTING ? "bound" : "renew");
|
||||
|
||||
state = BOUND;
|
||||
change_listen_mode(LISTEN_NONE);
|
||||
|
|
Loading…
Reference in New Issue