diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-08 14:00:25 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-08 14:00:25 +0000 |
commit | ce784ec239d2f9ed35c9396fdd1ea4c97eff1ee8 (patch) | |
tree | 02b318b51d0b8efff0919680ae757d48dbf86fcb /sbin/routed/parms.c | |
parent | a2705548511bc2760105bd44edb9810721b98b84 (diff) |
Use & to test if bits are set, not &&; art@ ok.
Diffstat (limited to 'sbin/routed/parms.c')
-rw-r--r-- | sbin/routed/parms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/routed/parms.c b/sbin/routed/parms.c index 18c305705d5..994810f7e88 100644 --- a/sbin/routed/parms.c +++ b/sbin/routed/parms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parms.c,v 1.6 1997/07/30 23:28:43 deraadt Exp $ */ +/* $OpenBSD: parms.c,v 1.7 2002/08/08 14:00:24 aaron Exp $ */ /* * Copyright (c) 1983, 1993 @@ -515,11 +515,11 @@ check_parms(struct parm *new) || (0 != (new->parm_int_state & GROUP_IS_SOL) && 0 != (parmp->parm_int_state & GROUP_IS_SOL) && 0 != ((new->parm_int_state ^ parmp->parm_int_state) - && GROUP_IS_SOL)) + & GROUP_IS_SOL)) || (0 != (new->parm_int_state & GROUP_IS_ADV) && 0 != (parmp->parm_int_state & GROUP_IS_ADV) && 0 != ((new->parm_int_state ^ parmp->parm_int_state) - && GROUP_IS_ADV)) + & GROUP_IS_ADV)) || (new->parm_rdisc_pref != 0 && parmp->parm_rdisc_pref != 0 && new->parm_rdisc_pref != parmp->parm_rdisc_pref) |