diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/bootloader/misc.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/bootloader/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c index c4531672df..6f5e0d9e62 100644 --- a/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c +++ b/c/src/lib/libbsp/powerpc/shared/bootloader/misc.c @@ -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]) && |