Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/routed bitmask operation mistake audit (s/&&/&/). from...
details: https://anonhg.NetBSD.org/src/rev/10e4907e3aee
branches: trunk
changeset: 535019:10e4907e3aee
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Aug 08 15:10:51 2002 +0000
description:
bitmask operation mistake audit (s/&&/&/). from openbsd
diffstat:
sbin/routed/parms.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r c8884a945ffc -r 10e4907e3aee sbin/routed/parms.c
--- a/sbin/routed/parms.c Thu Aug 08 15:08:55 2002 +0000
+++ b/sbin/routed/parms.c Thu Aug 08 15:10:51 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parms.c,v 1.15 2001/03/10 23:52:46 christos Exp $ */
+/* $NetBSD: parms.c,v 1.16 2002/08/08 15:10:51 itojun Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#include <sys/stat.h>
#ifdef __NetBSD__
-__RCSID("$NetBSD: parms.c,v 1.15 2001/03/10 23:52:46 christos Exp $");
+__RCSID("$NetBSD: parms.c,v 1.16 2002/08/08 15:10:51 itojun Exp $");
#elif defined(__FreeBSD__)
__RCSID("$FreeBSD$");
#else
@@ -874,11 +874,11 @@
if ((0 != (new->parm_int_state & GROUP_IS_SOL_OUT)
&& 0 != (parmp->parm_int_state & GROUP_IS_SOL_OUT)
&& 0 != ((new->parm_int_state ^ parmp->parm_int_state)
- && GROUP_IS_SOL_OUT))
+ & GROUP_IS_SOL_OUT))
|| (0 != (new->parm_int_state & GROUP_IS_ADV_OUT)
&& 0 != (parmp->parm_int_state & GROUP_IS_ADV_OUT)
&& 0 != ((new->parm_int_state ^ parmp->parm_int_state)
- && GROUP_IS_ADV_OUT))
+ & GROUP_IS_ADV_OUT))
|| (new->parm_rdisc_pref != 0
&& parmp->parm_rdisc_pref != 0
&& new->parm_rdisc_pref != parmp->parm_rdisc_pref)
Home |
Main Index |
Thread Index |
Old Index