diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-06-26 18:26:22 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-06-26 18:26:22 +0000 |
commit | 10b352c821da24ff907aa04a6bdfb68e39179fad (patch) | |
tree | a2c4fd3de1bd33f1ff31d226b791a2c5acd46a2a /usr.sbin | |
parent | 93b2219252745f85862243d2e779585b67459f97 (diff) |
irr->irr_raf_mask_onlink and irr->irr_raf_mask_auto are single-bit bitfields
so they can only be set to 1 or 0. Caught by gcc4.
ok mcbride@ pyr@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rtadvd/rrenum.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rtadvd/rrenum.c b/usr.sbin/rtadvd/rrenum.c index 08783e6a173..cd0caf439f6 100644 --- a/usr.sbin/rtadvd/rrenum.c +++ b/usr.sbin/rtadvd/rrenum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rrenum.c,v 1.12 2008/04/23 10:17:50 pyr Exp $ */ +/* $OpenBSD: rrenum.c,v 1.13 2010/06/26 18:26:21 guenther Exp $ */ /* $KAME: rrenum.c,v 1.11 2002/05/21 14:26:55 itojun Exp $ */ /* @@ -171,9 +171,9 @@ do_use_prefix(int len, struct rr_pco_match *rpm, irr->irr_u_uselen = rpu->rpu_uselen; irr->irr_u_keeplen = rpu->rpu_keeplen; irr->irr_raf_mask_onlink = - (rpu->rpu_ramask & ICMP6_RR_PCOUSE_RAFLAGS_ONLINK); + (rpu->rpu_ramask & ICMP6_RR_PCOUSE_RAFLAGS_ONLINK) == 0 ? 0 : 1; irr->irr_raf_mask_auto = - (rpu->rpu_ramask & ICMP6_RR_PCOUSE_RAFLAGS_AUTO); + (rpu->rpu_ramask & ICMP6_RR_PCOUSE_RAFLAGS_AUTO) == 0 ? 0 : 1; irr->irr_vltime = ntohl(rpu->rpu_vltime); irr->irr_pltime = ntohl(rpu->rpu_pltime); irr->irr_raf_onlink = |