projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2e6fbf
)
networkd: dhcp4 - style fixes
author
Tom Gundersen
<teg@jklm.no>
Tue, 3 Nov 2015 12:01:43 +0000
(13:01 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Wed, 11 Nov 2015 14:42:38 +0000
(15:42 +0100)
src/network/networkd-dhcp4.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-dhcp4.c
b/src/network/networkd-dhcp4.c
index b58fc5808c10fbef504c9ccec6af5fbb6c0ca0ba..b9c60a3c77871a765eb6087c83c28ec9cf9c0e79 100644
(file)
--- a/
src/network/networkd-dhcp4.c
+++ b/
src/network/networkd-dhcp4.c
@@
-34,7
+34,7
@@
static int dhcp4_route_handler(sd_netlink *rtnl, sd_netlink_message *m,
int r;
assert(link);
- assert(link->dhcp4_messages);
+ assert(link->dhcp4_messages
> 0
);
link->dhcp4_messages --;
@@
-44,7
+44,7
@@
static int dhcp4_route_handler(sd_netlink *rtnl, sd_netlink_message *m,
link_enter_failed(link);
}
- if (
!link->dhcp4_messages
) {
+ if (
link->dhcp4_messages == 0
) {
link->dhcp4_configured = true;
link_check_ready(link);
}