]> Zhao Yanbai Git Server - minix.git/commitdiff
Fix for sys_in* bug
authorBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:08:19 +0000 (23:08 +0000)
committerBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:08:19 +0000 (23:08 +0000)
drivers/dp8390/dp8390.c

index d431fcf4a322f54c6be53181234180f32ee084fe..c0f8cd78d47677facff0d863dfb866efd71554cb 100644 (file)
@@ -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)