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