[U-Boot-Users] [PATCH] cmd_nand.c: fix another 'incompatible pointer type' warning.

Wolfgang Denk wd at denx.de
Wed Apr 30 17:47:26 CEST 2008


Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 common/cmd_nand.c |    2 +-
 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;
 				}
-- 
1.5.4.2





More information about the U-Boot mailing list