fix for sys_in* bugs / compiler warnings

This commit is contained in:
Ben Gras 2006-03-24 23:07:23 +00:00
parent df947669b3
commit ffa55918db

View file

@ -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 )