projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cmd_nand: fix warning: str2long ncompatible pointer type
[oweals/u-boot.git]
/
common
/
cmd_nand.c
diff --git
a/common/cmd_nand.c
b/common/cmd_nand.c
index 1a3c1df03e01fe9fca9d1d5d39afffcc69fa121e..37eb41b20e642363b0035dcbe7c18eb3787fa230 100644
(file)
--- 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;
}