From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 30 Apr 2008 20:38:17 +0000 (+0200) Subject: cmd_nand: fix warning: str2long ncompatible pointer type X-Git-Tag: v1.3.3-rc3~10^2 X-Git-Url: https://git.sur5r.net/?p=u-boot;a=commitdiff_plain;h=12bc4e94251c369c529ffa505cf58b148c372f7f cmd_nand: fix warning: str2long ncompatible pointer type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 1a3c1df03e..37eb41b20e 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -110,7 +110,7 @@ arg_off_size(int argc, char *argv[], nand_info_t *nand, ulong *off, size_t *size } *off = part->offset; if (argc >= 2) { - if (!(str2long(argv[1], size))) { + if (!(str2long(argv[1], (ulong *)size))) { printf("'%s' is not a number\n", argv[1]); return -1; }