commit | b71e5e7e50e27b339e6f682d55c9a97bf539a3b9 | [log] [tgz] |
---|---|---|
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | Wed Apr 30 22:38:17 2008 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Wed Apr 30 22:58:47 2008 +0200 |
tree | b8fc14a0c94687ac766eba56cb8ec445dfad0668 | |
parent | d93136b4affe8c75d233269f8e83e2b918d8280b [diff] |
cmd_nand: fix warning: str2long ncompatible pointer type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 1a3c1df..37eb41b 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c
@@ -110,7 +110,7 @@ } *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; }