From 147c7169e859128e86da96275c48d200ad720fd6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 23 Apr 2011 23:43:21 +0000 Subject: 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 --- include/environment.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/environment.h') diff --git a/include/environment.h b/include/environment.h index 53d92df..e8b6e45 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 */ -- cgit v1.1