forked from Imagelibrary/rtems
2005-11-03 straumanatslacdotstanforddotedu
* shared/bootloader/misc.c, shared/console/polled_io.c,
shared/residual/residual.c: silenced compiler warnings (type cast &
renaming puts->my_puts)
This commit is contained in:
@@ -424,10 +424,10 @@ setup_hw(void)
|
||||
/* Functions to deal with the residual data */
|
||||
static int same_DevID(unsigned short vendor,
|
||||
unsigned short Number,
|
||||
char * str)
|
||||
unsigned char * str)
|
||||
{
|
||||
static unsigned const char hexdigit[]="0123456789ABCDEF";
|
||||
if (strlen(str)!=7) return 0;
|
||||
if (strlen((char*)str)!=7) return 0;
|
||||
if ( ( ((vendor>>10)&0x1f)+'A'-1 == str[0]) &&
|
||||
( ((vendor>>5)&0x1f)+'A'-1 == str[1]) &&
|
||||
( (vendor&0x1f)+'A'-1 == str[2]) &&
|
||||
|
||||
Reference in New Issue
Block a user