cmd_nand: fix warning: str2long ncompatible pointer type
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Wed, 30 Apr 2008 20:38:17 +0000 (22:38 +0200)
committerWolfgang Denk <wd@denx.de>
Wed, 30 Apr 2008 20:58:47 +0000 (22:58 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
common/cmd_nand.c

index 1a3c1df03e01fe9fca9d1d5d39afffcc69fa121e..37eb41b20e642363b0035dcbe7c18eb3787fa230 100644 (file)
@@ -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;
                                }