Module Name: src Committed By: mrg Date: Wed Jun 22 05:18:03 UTC 2011
Modified Files: src/sbin/scsictl: scsi_sense.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sbin/scsictl/scsi_sense.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/scsictl/scsi_sense.c diff -u src/sbin/scsictl/scsi_sense.c:1.8 src/sbin/scsictl/scsi_sense.c:1.9 --- src/sbin/scsictl/scsi_sense.c:1.8 Mon Apr 28 20:23:09 2008 +++ src/sbin/scsictl/scsi_sense.c Wed Jun 22 05:18:03 2011 @@ -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;