]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
cmd_nand : fix compiler warning.
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 13 Jan 2008 11:36:12 +0000 (12:36 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 13 Jan 2008 14:57:48 +0000 (15:57 +0100)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
common/cmd_nand.c

index b248a2cdb2c822f67c5c4e604669b4155bd96e5a..8d6c959584f64de348c3fc0d5276f186c7c08ebc 100644 (file)
@@ -350,10 +350,10 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
                } else if (s != NULL && !strcmp(s, ".oob")) {
                        /* read out-of-band data */
                        if (read)
-                               ret = nand->read_oob(nand, off, size, &size,
+                               ret = nand->read_oob(nand, off, size, (size_t *) &size,
                                                     (u_char *) addr);
                        else
-                               ret = nand->write_oob(nand, off, size, &size,
+                               ret = nand->write_oob(nand, off, size, (size_t *) &size,
                                                      (u_char *) addr);
                } else {
                        if (read)