summaryrefslogtreecommitdiffstats
path: root/dhcp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-06 19:24:40 +0000
committerRoy Marples <roy@marples.name>2008-09-06 19:24:40 +0000
commit08aa77766031ce7f5966e81495e87360dce2e1a2 (patch)
tree785688268eeccd8cdfe2ce9ddf709eecb647356c /dhcp.c
parenta53c73c2e50ea39286e84671b3c7572c265d5256 (diff)
downloaddhcpcd-08aa77766031ce7f5966e81495e87360dce2e1a2.tar.xz
Style.
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcp.c b/dhcp.c
index c886828f..7b2993e0 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -535,8 +535,7 @@ decode_rfc3442_rt(int dl, const uint8_t *data)
if (ocets > 0) {
memcpy(&rt->dest.s_addr, p, ocets);
memset(&rt->net.s_addr, 255, ocets);
- memset((uint8_t *)&rt->net.s_addr +
- (ocets - 1),
+ memset((uint8_t *)&rt->net.s_addr + (ocets - 1),
(256 - (1 << (32 - cidr) % 8)), 1);
p += ocets;
} else {