summaryrefslogtreecommitdiff
path: root/common/env_flash.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-04-23 23:43:21 +0000
committerWolfgang Denk <wd@denx.de>2011-07-26 16:34:22 +0200
commit147c7169e859128e86da96275c48d200ad720fd6 (patch)
tree2b1ae2345cffc4c8262698cce119ef877adbb642 /common/env_flash.c
parentc3eb3fe490daeb3746e5b1fe354ff1a19eb3e3a8 (diff)
constify default env
I can't see any obvious needs for the default environment to be writable, so make it const. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/env_flash.c')
-rw-r--r--common/env_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_flash.c b/common/env_flash.c
index 456f2e83759..50ca4ffa568 100644
--- a/common/env_flash.c
+++ b/common/env_flash.c
@@ -74,7 +74,7 @@ static env_t *flash_addr_new = (env_t *)CONFIG_ENV_ADDR_REDUND;
static ulong end_addr_new = CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SECT_SIZE - 1;
#endif /* CONFIG_ENV_ADDR_REDUND */
-extern uchar default_environment[];
+extern const uchar default_environment[];
uchar env_get_char_spec(int index)