From 271694cc1ec4bc6ec83968fa930b6405cd9fbfdc Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 2 May 1999 21:46:31 +0000 Subject: [PATCH] Operator precedence bug PR: 11415 Submitted by: Christopher Peterson --- sys/i386/isa/wst.c | 4 ++-- sys/pc98/pc98/wst.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/i386/isa/wst.c b/sys/i386/isa/wst.c index 092846b4d39..c9d6d3f16ad 100644 --- a/sys/i386/isa/wst.c +++ b/sys/i386/isa/wst.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.16 1999/04/13 19:38:11 peter Exp $ + * $Id: wst.c,v 1.17 1999/04/28 10:53:06 dt Exp $ */ #include "wdc.h" @@ -423,7 +423,7 @@ wststrategy(struct buf *bp) } if (bp->b_bcount > t->blksize*t->cap.ctl) { - if (t->flags & WST_CTL_WARN == 0) { + if ((t->flags & WST_CTL_WARN) == 0) { printf("wst%d: WARNING: CTL exceeded %ld>%d\n", lun, bp->b_bcount, t->blksize*t->cap.ctl); t->flags |= WST_CTL_WARN; diff --git a/sys/pc98/pc98/wst.c b/sys/pc98/pc98/wst.c index 092846b4d39..c9d6d3f16ad 100644 --- a/sys/pc98/pc98/wst.c +++ b/sys/pc98/pc98/wst.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.16 1999/04/13 19:38:11 peter Exp $ + * $Id: wst.c,v 1.17 1999/04/28 10:53:06 dt Exp $ */ #include "wdc.h" @@ -423,7 +423,7 @@ wststrategy(struct buf *bp) } if (bp->b_bcount > t->blksize*t->cap.ctl) { - if (t->flags & WST_CTL_WARN == 0) { + if ((t->flags & WST_CTL_WARN) == 0) { printf("wst%d: WARNING: CTL exceeded %ld>%d\n", lun, bp->b_bcount, t->blksize*t->cap.ctl); t->flags |= WST_CTL_WARN;