summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/isa.c
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1999-04-24 18:24:43 +0000
committerkato <kato@FreeBSD.org>1999-04-24 18:24:43 +0000
commit4891334365b11be855307ff3375b9fa2b9508b16 (patch)
tree0992c509b01c327ae5f62c4179be320af056c05a /sys/i386/isa/isa.c
parentcfd84c8eac61e630bf4ce54cbd2636cb3e3f3173 (diff)
downloadFreeBSD-src-4891334365b11be855307ff3375b9fa2b9508b16.zip
FreeBSD-src-4891334365b11be855307ff3375b9fa2b9508b16.tar.gz
Changed the type of id_port from short into int to avoid wrong
conversion from short to unsigned long which is an argument of bus_alloc_resource. Since the value -1 is used to indicate no port reousece, id_port need to be signed (suggested by Doug Rabson and Peter Wemm.)
Diffstat (limited to 'sys/i386/isa/isa.c')
-rw-r--r--sys/i386/isa/isa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c
index edd58c0..3547800 100644
--- a/sys/i386/isa/isa.c
+++ b/sys/i386/isa/isa.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: isa.c,v 1.120 1999/04/16 23:39:15 peter Exp $
+ * $Id: isa.c,v 1.121 1999/04/24 06:47:24 peter Exp $
*/
/*
@@ -75,7 +75,7 @@ MALLOC_DEFINE(M_ISADEV, "isadev", "ISA device");
* The structure used to attach devices to the isa bus.
*/
struct isa_device {
- short id_port[ISA_NPORT_IVARS];
+ int id_port[ISA_NPORT_IVARS];
u_short id_portsize[ISA_NPORT_IVARS];
vm_offset_t id_maddr[ISA_NMEM_IVARS];
vm_size_t id_msize[ISA_NMEM_IVARS];
OpenPOWER on IntegriCloud