mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
dhcp: fix minor coding style issue
This commit is contained in:
parent
31a83062fb
commit
bdbb98d9ae
@ -995,15 +995,14 @@ static int client_send_request(sd_dhcp_client *client) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (client->state == DHCP_STATE_RENEWING) {
|
||||
if (client->state == DHCP_STATE_RENEWING)
|
||||
r = dhcp_network_send_udp_socket(client->fd,
|
||||
client->lease->server_address,
|
||||
DHCP_PORT_SERVER,
|
||||
&request->dhcp,
|
||||
sizeof(DHCPMessage) + optoffset);
|
||||
} else {
|
||||
else
|
||||
r = dhcp_client_send_raw(client, request, sizeof(DHCPPacket) + optoffset);
|
||||
}
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
@ -1211,7 +1210,7 @@ static int client_initialize_time_events(sd_dhcp_client *client) {
|
||||
assert(client);
|
||||
assert(client->event);
|
||||
|
||||
if (client->start_delay) {
|
||||
if (client->start_delay > 0) {
|
||||
assert_se(sd_event_now(client->event, clock_boottime_or_monotonic(), &usec) >= 0);
|
||||
usec += client->start_delay;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user