[U-Boot-Users] [PATCH] cmd_nand : fix compiler warning.
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sun Jan 13 12:36:12 CET 2008
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index b248a2c..8d6c959 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -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)
--
1.5.3.7
More information about the U-Boot
mailing list