diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-23 23:43:21 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-07-26 16:34:22 +0200 |
commit | 147c7169e859128e86da96275c48d200ad720fd6 (patch) | |
tree | 2b1ae2345cffc4c8262698cce119ef877adbb642 /common/env_common.c | |
parent | c3eb3fe490daeb3746e5b1fe354ff1a19eb3e3a8 (diff) | |
download | u-boot-imx-147c7169e859128e86da96275c48d200ad720fd6.zip u-boot-imx-147c7169e859128e86da96275c48d200ad720fd6.tar.gz u-boot-imx-147c7169e859128e86da96275c48d200ad720fd6.tar.bz2 |
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_common.c')
-rw-r--r-- | common/env_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/env_common.c b/common/env_common.c index c3e6388..19149b5 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -47,7 +47,7 @@ static uchar env_get_char_init (int index); #define XMK_STR(x) #x #define MK_STR(x) XMK_STR(x) -uchar default_environment[] = { +const uchar default_environment[] = { #ifdef CONFIG_BOOTARGS "bootargs=" CONFIG_BOOTARGS "\0" #endif @@ -162,7 +162,7 @@ uchar env_get_char (int index) return (c); } -uchar *env_get_addr (int index) +const uchar *env_get_addr (int index) { if (gd->env_valid) return (uchar *)(gd->env_addr + index); |