summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-04-30 17:46:26 +0200
committerWolfgang Denk <wd@denx.de>2008-04-30 17:46:26 +0200
commit42ffcec3f9eba010a662d5b42981812b6bebfb9a (patch)
tree27fc5f64bef4f0234bb19e9d11f741540f9dc3b9
parentde109d909707e2dfe806be5efc3cdb103b47c8ad (diff)
downloadu-boot-imx-42ffcec3f9eba010a662d5b42981812b6bebfb9a.zip
u-boot-imx-42ffcec3f9eba010a662d5b42981812b6bebfb9a.tar.gz
u-boot-imx-42ffcec3f9eba010a662d5b42981812b6bebfb9a.tar.bz2
cmd_nand.c: fix another 'incompatible pointer type' warning.
Signed-off-by: Wolfgang Denk <wd@denx.de>
-rw-r--r--common/cmd_nand.c2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;
}