summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-30 04:08:06 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-30 04:08:06 +0000
commiteb64181e40804e908427c279722bb24a4b692ed7 (patch)
treecc87c68d647dcb6ffaf31d5fe3271aa13014062c /sys/netinet6
parentba18c625a8d4147d5f089723834b79ceb8e0c5ca (diff)
minor KNF
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/dest6.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet6/dest6.c b/sys/netinet6/dest6.c
index eaf0e9e1476..370259da516 100644
--- a/sys/netinet6/dest6.c
+++ b/sys/netinet6/dest6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dest6.c,v 1.8 2001/02/22 01:40:40 itojun Exp $ */
+/* $OpenBSD: dest6.c,v 1.9 2002/05/30 04:08:05 itojun Exp $ */
/* $KAME: dest6.c,v 1.25 2001/02/22 01:39:16 itojun Exp $ */
/*
@@ -102,9 +102,10 @@ dest6_input(mp, offp, proto)
optlen = *(opt + 1) + 2;
break;
default: /* unknown option */
- if ((optlen = ip6_unknown_opt(opt, m,
- opt-mtod(m, u_int8_t *))) == -1)
- return(IPPROTO_DONE);
+ optlen = ip6_unknown_opt(opt, m,
+ opt - mtod(m, u_int8_t *));
+ if (optlen == -1)
+ return (IPPROTO_DONE);
optlen += 2;
break;
}