]> Zhao Yanbai Git Server - minix.git/commitdiff
fix for sys_in* bugs / compiler warnings
authorBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:07:23 +0000 (23:07 +0000)
committerBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:07:23 +0000 (23:07 +0000)
drivers/lance/lance.c

index c9637d100ac6aa6a28c929b6ff4c9b20b98c0f52..15909cb78c1d61d643c45510a75193c634466c4d 100644 (file)
 
 static U8_t in_byte(U16_t port)
 {
-       U8_t value;
+       unsigned long value;
        int s;
        if ((s=sys_inb(port, &value)) != OK)
                printf( "lance: warning, sys_inb failed: %d\n", s );
-       return value;
+       return (U8_t) value;
 }
 
 static U16_t in_word( U16_t port)
 {
-       U16_t value;
+       unsigned long value;
        int s;
        if ((s=sys_inw(port, &value)) != OK)
                printf( "lance: warning, sys_inw failed: %d\n", s );
-       return value;
+       return (U16_t) value;
 }
 /*
 #define in_byte( x ) inb( x )