summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-11-29 03:39:01 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-11-29 03:39:01 +0000
commit412c68ef8523d20df4f316521c76b50e83086612 (patch)
tree869be4e18b7a576f160c4a78f12bb86ac7a8eb82 /sys/dev/isa
parentdb136cd7e78b28638d1c4daff2dbfa901197bcef (diff)
Change the sc_model field type from unsigned to signed since the model can be
set to SB_UNK which has a value of -1. sb.c:307:8: error: comparison of 0 <= unsigned expression is always true [-Werror,-Wtautological-compare] ok deraadt@
Diffstat (limited to 'sys/dev/isa')
-rw-r--r--sys/dev/isa/sbdspvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/sbdspvar.h b/sys/dev/isa/sbdspvar.h
index 2b53267f2ac..6ed2779e5f6 100644
--- a/sys/dev/isa/sbdspvar.h
+++ b/sys/dev/isa/sbdspvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbdspvar.h,v 1.16 2002/03/14 03:16:05 millert Exp $ */
+/* $OpenBSD: sbdspvar.h,v 1.17 2013/11/29 03:39:00 brad Exp $ */
/* $NetBSD: sbdspvar.h,v 1.37 1998/08/10 00:20:39 mycroft Exp $ */
/*
@@ -162,7 +162,7 @@ struct sbdsp_softc {
#define SBM_CT1745 4
#define ISSBM1745(x) ((x)->sc_mixer_model >= SBM_CT1XX5)
- u_int sc_model; /* DSP model */
+ int sc_model; /* DSP model */
#define SB_UNK -1
#define SB_1 0 /* original SB */
#define SB_20 1 /* SB 2 */