summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-04-28 14:55:12 +0200
committerWolfgang Denk <wd@denx.de>2008-04-28 14:55:12 +0200
commitc71abba3cb67b063f789f17abf6c7447727c0cd5 (patch)
treed926df3af289093d4bfe71623db76cffb91eae22 /common
parentf2c288a35341ad02ac03b1563d786763c9c8f159 (diff)
downloadu-boot-imx-c71abba3cb67b063f789f17abf6c7447727c0cd5.zip
u-boot-imx-c71abba3cb67b063f789f17abf6c7447727c0cd5.tar.gz
u-boot-imx-c71abba3cb67b063f789f17abf6c7447727c0cd5.tar.bz2
cmd_nand.c: fix "differ in signedness" problem
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nand.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index f8fce0e..1a3c1df 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -840,12 +840,13 @@ int do_nand (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
if (strncmp (argv[1], "read", 4) == 0 ||
strncmp (argv[1], "write", 5) == 0) {
- ulong addr = simple_strtoul (argv[2], NULL, 16);
- ulong off = simple_strtoul (argv[3], NULL, 16);
- ulong size = simple_strtoul (argv[4], NULL, 16);
- int cmd = (strncmp (argv[1], "read", 4) == 0) ?
- NANDRW_READ : NANDRW_WRITE;
- int ret, total;
+ ulong addr = simple_strtoul (argv[2], NULL, 16);
+ off_t off = simple_strtoul (argv[3], NULL, 16);
+ size_t size = simple_strtoul (argv[4], NULL, 16);
+ int cmd = (strncmp (argv[1], "read", 4) == 0) ?
+ NANDRW_READ : NANDRW_WRITE;
+ size_t total;
+ int ret;
char *cmdtail = strchr (argv[1], '.');
if (cmdtail && !strncmp (cmdtail, ".oob", 2)) {