Source-Changes-HG archive

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

[src/trunk]: src/sbin/scsictl when checking for SKSV data, use the same test ...



details:   https://anonhg.NetBSD.org/src/rev/bd0e7c0aeb19
branches:  trunk
changeset: 766427:bd0e7c0aeb19
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 22 05:18:03 2011 +0000

description:
when checking for SKSV data, use the same test as before.  fixes an
always true conditional GCC 4.5 found, and is also a real bug fix.

diffstat:

 sbin/scsictl/scsi_sense.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6161f54ade76 -r bd0e7c0aeb19 sbin/scsictl/scsi_sense.c
--- a/sbin/scsictl/scsi_sense.c Wed Jun 22 05:16:37 2011 +0000
+++ b/sbin/scsictl/scsi_sense.c Wed Jun 22 05:18:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsi_sense.c,v 1.8 2008/04/28 20:23:09 martin Exp $    */
+/*     $NetBSD: scsi_sense.c,v 1.9 2011/06/22 05:18:03 mrg Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: scsi_sense.c,v 1.8 2008/04/28 20:23:09 martin Exp $");
+__RCSID("$NetBSD: scsi_sense.c,v 1.9 2011/06/22 05:18:03 mrg Exp $");
 #endif
 
 
@@ -380,7 +380,7 @@
         * nonzero data. If we have some, go back and print the lot,
         * otherwise we're done.
         */
-       if (sbs)
+       if (cp)
                i = 18;
        else
                i = 15;



Home | Main Index | Thread Index | Old Index