Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic listen to GCC 4.5 and change "!!x | y" into "(!!x...



details:   https://anonhg.NetBSD.org/src/rev/e3f1854327a8
branches:  trunk
changeset: 766800:e3f1854327a8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 02 13:13:22 2011 +0000

description:
listen to GCC 4.5 and change "!!x | y" into "(!!x) | y".

diffstat:

 sys/dev/ic/i82586.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bdbdffe284a0 -r e3f1854327a8 sys/dev/ic/i82586.c
--- a/sys/dev/ic/i82586.c       Sat Jul 02 13:12:44 2011 +0000
+++ b/sys/dev/ic/i82586.c       Sat Jul 02 13:13:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82586.c,v 1.69 2011/06/03 16:28:40 tsutsui Exp $      */
+/*     $NetBSD: i82586.c,v 1.70 2011/07/02 13:13:22 mrg Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -137,7 +137,7 @@
 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.69 2011/06/03 16:28:40 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.70 2011/07/02 13:13:22 mrg Exp $");
 
 
 #include <sys/param.h>
@@ -1507,7 +1507,7 @@
        *IE_CMD_CFG_IFS(buf)       = 0x60;
        *IE_CMD_CFG_SLOT_LOW(buf)  = 0;
        *IE_CMD_CFG_SLOT_HIGH(buf) = 0xf2;
-       *IE_CMD_CFG_PROMISC(buf)   = !!promiscuous | manchester << 2;
+       *IE_CMD_CFG_PROMISC(buf)   = (!!promiscuous) | manchester << 2;
        *IE_CMD_CFG_CRSCDT(buf)    = 0;
        *IE_CMD_CFG_MINLEN(buf)    = 64;
        *IE_CMD_CFG_JUNK(buf)      = 0xff;



Home | Main Index | Thread Index | Old Index