cmd_nand.c: fix "differ in signedness" problem
Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
f2c288a353
commit
c71abba3cb
@ -841,11 +841,12 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
|||||||
if (strncmp (argv[1], "read", 4) == 0 ||
|
if (strncmp (argv[1], "read", 4) == 0 ||
|
||||||
strncmp (argv[1], "write", 5) == 0) {
|
strncmp (argv[1], "write", 5) == 0) {
|
||||||
ulong addr = simple_strtoul (argv[2], NULL, 16);
|
ulong addr = simple_strtoul (argv[2], NULL, 16);
|
||||||
ulong off = simple_strtoul (argv[3], NULL, 16);
|
off_t off = simple_strtoul (argv[3], NULL, 16);
|
||||||
ulong size = simple_strtoul (argv[4], NULL, 16);
|
size_t size = simple_strtoul (argv[4], NULL, 16);
|
||||||
int cmd = (strncmp (argv[1], "read", 4) == 0) ?
|
int cmd = (strncmp (argv[1], "read", 4) == 0) ?
|
||||||
NANDRW_READ : NANDRW_WRITE;
|
NANDRW_READ : NANDRW_WRITE;
|
||||||
int ret, total;
|
size_t total;
|
||||||
|
int ret;
|
||||||
char *cmdtail = strchr (argv[1], '.');
|
char *cmdtail = strchr (argv[1], '.');
|
||||||
|
|
||||||
if (cmdtail && !strncmp (cmdtail, ".oob", 2)) {
|
if (cmdtail && !strncmp (cmdtail, ".oob", 2)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user