aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-20 16:03:53 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-20 16:03:53 +0000
commit422fa64be3d173171e687ad9d9cf9fb5e0ca392d (patch)
tree68bf1f5458e3309f003300b79a7219d45f917ef8 /lib/libc
parent33495e5daf2760bcf739eb642d83c09706e64adc (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/ip6opt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/net/ip6opt.c b/lib/libc/net/ip6opt.c
index c2d292f2d966c..db3f8ce66c3a5 100644
--- a/lib/libc/net/ip6opt.c
+++ b/lib/libc/net/ip6opt.c
@@ -199,8 +199,7 @@ inet6_option_alloc(struct cmsghdr *cmsg, int datalen, int multx, int plusy)
/* calculate pad length before the option. */
off = bp - (u_char *)eh;
- padlen = roundup2(off % multx, multx) -
- (off % multx);
+ padlen = roundup2(off % multx, multx) - (off % multx);
padlen += plusy;
padlen %= multx; /* keep the pad as short as possible */
/* insert padding */