projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba3278
)
dhcpv4: fix memset compile issue
author
Hans Dedecker
<dedeckeh@gmail.com>
Wed, 13 Sep 2017 13:56:42 +0000
(15:56 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Wed, 13 Sep 2017 13:58:02 +0000
(15:58 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv4.c
patch
|
blob
|
history
diff --git
a/src/dhcpv4.c
b/src/dhcpv4.c
index
a4b6030
..
6b3d782
100644
(file)
--- a/
src/dhcpv4.c
+++ b/
src/dhcpv4.c
@@
-354,7
+354,7
@@
void dhcpv4_addr_update(struct interface *iface)
struct dhcpv4_assignment *c;
uint32_t mask = iface->dhcpv4_mask.s_addr;
- memset(&ip,
sizeof(ip), 0
);
+ memset(&ip,
0, sizeof(ip)
);
ip.addr.in = iface->dhcpv4_local;
ip.prefix = odhcpd_netmask2bitlen(false, &iface->dhcpv4_mask);
ip.broadcast = iface->dhcpv4_bcast;