From: Ben Gras Date: Fri, 24 Mar 2006 23:07:23 +0000 (+0000) Subject: fix for sys_in* bugs / compiler warnings X-Git-Tag: v3.1.2a~143 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/howto.html?a=commitdiff_plain;h=ffa55918db8ac629b8a02ca96e32cbe4d4ae9cbf;p=minix.git fix for sys_in* bugs / compiler warnings --- diff --git a/drivers/lance/lance.c b/drivers/lance/lance.c index c9637d100..15909cb78 100644 --- a/drivers/lance/lance.c +++ b/drivers/lance/lance.c @@ -65,20 +65,20 @@ 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 )