From b502611b51f02718c2d1117d4981dabceb5af6de Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sun, 6 Jul 2008 12:30:09 +0200 Subject: Change env_get_char from a global function ptr to a function This avoids an early global data reference. Signed-off-by: Joakim Tjernlund --- include/environment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/environment.h') diff --git a/include/environment.h b/include/environment.h index bf9f66912..dcb7c5a38 100644 --- a/include/environment.h +++ b/include/environment.h @@ -107,8 +107,8 @@ typedef struct environment_s { unsigned char data[ENV_SIZE]; /* Environment data */ } env_t; -/* Pointer to function that returns a character from the environment */ -extern unsigned char (*env_get_char)(int); +/* Function that returns a character from the environment */ +unsigned char env_get_char (int); /* Function that returns a pointer to a value from the environment */ unsigned char *env_get_addr(int); -- cgit v1.2.3