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:
Till Straumann
2005-11-03 19:14:54 +00:00
parent cc9073d19b
commit e156c6336a
4 changed files with 13 additions and 7 deletions

View File

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