Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic avoid -Wenum-compare issue.



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

description:
avoid -Wenum-compare issue.

diffstat:

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

diffs (27 lines):

diff -r 6e2fbbe5d714 -r bdbdffe284a0 sys/dev/ic/aic79xx.c
--- a/sys/dev/ic/aic79xx.c      Sat Jul 02 13:11:48 2011 +0000
+++ b/sys/dev/ic/aic79xx.c      Sat Jul 02 13:12:44 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic79xx.c,v 1.44 2009/09/03 14:52:22 tsutsui Exp $     */
+/*     $NetBSD: aic79xx.c,v 1.45 2011/07/02 13:12:44 mrg Exp $ */
 
 /*
  * Core routines and tables shareable across OS platforms.
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.44 2009/09/03 14:52:22 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aic79xx.c,v 1.45 2011/07/02 13:12:44 mrg Exp $");
 
 #include <dev/ic/aic79xx_osm.h>
 #include <dev/ic/aic79xx_inline.h>
@@ -7198,7 +7198,7 @@
                                        ahd_freeze_scb(scb);
                                if ((scb->flags & SCB_ACTIVE) == 0)
                                        printf("Inactive SCB in qinfifo\n");
-                               if (scb->xs->error != CAM_REQ_CMP)
+                               if ((cam_status)scb->xs->error != CAM_REQ_CMP)
                                        printf("SEARCH_COMPLETE(0x%x):"
                                               " ostat 0x%x, cstat 0x%x, "
                                               "xs_error 0x%x\n",



Home | Main Index | Thread Index | Old Index