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 /include | |
parent | c3eb3fe490daeb3746e5b1fe354ff1a19eb3e3a8 (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 'include')
-rw-r--r-- | include/environment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/environment.h b/include/environment.h index 53d92df1f2..e8b6e45c33 100644 --- a/include/environment.h +++ b/include/environment.h @@ -160,7 +160,7 @@ extern struct hsearch_data env_htab; unsigned char env_get_char (int); /* Function that returns a pointer to a value from the environment */ -unsigned char *env_get_addr(int); +const unsigned char *env_get_addr(int); unsigned char env_get_char_memory (int index); /* Function that updates CRC of the enironment */ |