diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-08-08 17:20:10 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-08-08 17:20:10 +0000 |
commit | 001ce84d1581014ba57effe58f61fda80ed86d00 (patch) | |
tree | 10a7f115b18f1c78199a63f3768dc6a596f91ae8 /sbin | |
parent | 39b8c01a28ddb6922e537b15d3ab4c09b54bd074 (diff) |
KNF some long lines.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 5 | ||||
-rw-r--r-- | sbin/dhclient/kroute.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index eb394d5b590..fa2d9030a1e 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.489 2017/07/30 15:26:46 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.490 2017/08/08 17:20:09 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -1828,7 +1828,8 @@ lease_as_proposal(struct client_lease *lease) opt = &lease->options[DHO_SUBNET_MASK]; if (opt->len == sizeof(proposal->netmask)) { proposal->addrs |= RTA_NETMASK; - proposal->netmask.s_addr = ((struct in_addr *)opt->data)->s_addr; + proposal->netmask.s_addr = + ((struct in_addr *)opt->data)->s_addr; } if (lease->options[DHO_CLASSLESS_STATIC_ROUTES].len != 0) { diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index 0c84e8f51ab..441158206d0 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.132 2017/08/06 22:05:16 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.133 2017/08/08 17:20:09 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback <krw@openbsd.org> @@ -479,8 +479,10 @@ priv_add_route(char *name, int rdomain, int routefd, if (writev(routefd, iov, iovcnt) != -1) break; if (i == 4) { - strlcpy(destbuf, inet_ntoa(imsg->dest), sizeof(destbuf)); - strlcpy(maskbuf, inet_ntoa(imsg->netmask), sizeof(maskbuf)); + strlcpy(destbuf, inet_ntoa(imsg->dest), + sizeof(destbuf)); + strlcpy(maskbuf, inet_ntoa(imsg->netmask), + sizeof(maskbuf)); log_warn("failed to add route (%s/%s via %s)", destbuf, maskbuf, inet_ntoa(imsg->gateway)); } else if (errno == EEXIST || errno == ENETUNREACH) |