From: Simon Glass Date: Thu, 5 Jan 2012 17:54:56 +0000 (+0000) Subject: m68k: Change memsz to a signed char to avoid warning X-Git-Tag: v2012.04-rc1~88 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a5466651e90439f400449b29526dac99c8f3dad4;p=u-boot m68k: Change memsz to a signed char to avoid warning There doesn't seem to be any reason for using uchar here, so change it to char. This fixes a warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- diff --git a/arch/m68k/lib/board.c b/arch/m68k/lib/board.c index 259b71c3b2..1526967fe3 100644 --- a/arch/m68k/lib/board.c +++ b/arch/m68k/lib/board.c @@ -639,7 +639,7 @@ void board_init_r (gd_t *id, ulong dest_addr) */ { ulong pram = 0; - uchar memsz[32]; + char memsz[32]; #ifdef CONFIG_PRAM pram = getenv_ulong("pram", 10, CONFIG_PRAM);