Skip to content
Snippets Groups Projects
Commit 12bc4e94 authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD Committed by Wolfgang Denk
Browse files

cmd_nand: fix warning: str2long ncompatible pointer type

parent 1b9ed257
Branches
Tags
No related merge requests found
...@@ -110,7 +110,7 @@ arg_off_size(int argc, char *argv[], nand_info_t *nand, ulong *off, size_t *size ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment