浏览代码

cmd_nand: fix warning: str2long ncompatible pointer type

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe PLAGNIOL-VILLARD 17 年之前
父节点
当前提交
12bc4e9425
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/cmd_nand.c

+ 1 - 1
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;
 			*off = part->offset;
 			if (argc >= 2) {
 			if (argc >= 2) {
-				if (!(str2long(argv[1], size))) {
+				if (!(str2long(argv[1], (ulong *)size))) {
 					printf("'%s' is not a number\n", argv[1]);
 					printf("'%s' is not a number\n", argv[1]);
 					return -1;
 					return -1;
 				}
 				}