summaryrefslogtreecommitdiff
path: root/common/env_onenand.c
diff options
context:
space:
mode:
authorPeter Pearse <peter.pearse@arm.com>2007-11-15 08:58:00 +0000
committerPeter Pearse <peter.pearse@arm.com>2007-11-15 08:58:00 +0000
commit2ae64f5135e51bb18753884d1265b99e89b5aedd (patch)
tree648b0acba18ee1b53744fcb22dc0e73dec79e38c /common/env_onenand.c
parent2db916e14410e3ec1738508c7bf4dfeb2b299ae7 (diff)
Remove warnings re CONFIG_EXTRA_ENV_SETTINGS
Remove warnings re onenand_read() & write()
Diffstat (limited to 'common/env_onenand.c')
-rw-r--r--common/env_onenand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/env_onenand.c b/common/env_onenand.c
index 66107f91f17..5888f75d895 100644
--- a/common/env_onenand.c
+++ b/common/env_onenand.c
@@ -64,7 +64,7 @@ void env_relocate_spec(void)
DECLARE_GLOBAL_DATA_PTR;
unsigned long env_addr;
int use_default = 0;
- int retlen;
+ size_t retlen;
env_addr = CFG_ENV_ADDR;
env_addr -= (unsigned long)onenand_chip.base;
@@ -96,7 +96,7 @@ int saveenv(void)
{
unsigned long env_addr = CFG_ENV_ADDR;
struct erase_info instr;
- int retlen;
+ size_t retlen;
instr.len = CFG_ENV_SIZE;
instr.addr = env_addr;