Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/routed Use bitwise operators, logical and with a consta...
details: https://anonhg.NetBSD.org/src/rev/958e8071f852
branches: trunk
changeset: 765321:958e8071f852
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 24 12:03:04 2011 +0000
description:
Use bitwise operators, logical and with a constant doesn't make sense
diffstat:
sbin/routed/parms.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r caffdb00ed8c -r 958e8071f852 sbin/routed/parms.c
--- a/sbin/routed/parms.c Tue May 24 11:38:56 2011 +0000
+++ b/sbin/routed/parms.c Tue May 24 12:03:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parms.c,v 1.24 2009/10/26 02:53:15 christos Exp $ */
+/* $NetBSD: parms.c,v 1.25 2011/05/24 12:03:04 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#include <sys/stat.h>
#ifdef __NetBSD__
-__RCSID("$NetBSD: parms.c,v 1.24 2009/10/26 02:53:15 christos Exp $");
+__RCSID("$NetBSD: parms.c,v 1.25 2011/05/24 12:03:04 joerg Exp $");
#elif defined(__FreeBSD__)
__RCSID("$FreeBSD$");
#else
@@ -900,11 +900,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