From: Ben Gras Date: Fri, 24 Mar 2006 23:08:19 +0000 (+0000) Subject: Fix for sys_in* bug X-Git-Tag: v3.1.2a~142 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/doc/syslog.3.html?a=commitdiff_plain;h=d130e2838e8d9af089247a7d35f7202a9a503b50;p=minix.git Fix for sys_in* bug --- diff --git a/drivers/dp8390/dp8390.c b/drivers/dp8390/dp8390.c index d431fcf4a..c0f8cd78d 100644 --- a/drivers/dp8390/dp8390.c +++ b/drivers/dp8390/dp8390.c @@ -1905,12 +1905,12 @@ u8_t inb(port_t port) u16_t inw(port_t port) { int r; - u16_t value; + unsigned long value; r= sys_inw(port, &value); if (r != OK) panic("DP8390", "sys_inw failed", r); - return value; + return (u16_t) value; } void outb(port_t port, u8_t value)