diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2008-07-06 12:30:09 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-09 23:59:30 +0200 |
commit | b502611b51f02718c2d1117d4981dabceb5af6de (patch) | |
tree | 64f54df2c15bfbe3cfda0e7c3cba2ad334817220 /include | |
parent | 27269417ade432189b234d9fbac98b54e37b978c (diff) | |
download | u-boot-imx-b502611b51f02718c2d1117d4981dabceb5af6de.zip u-boot-imx-b502611b51f02718c2d1117d4981dabceb5af6de.tar.gz u-boot-imx-b502611b51f02718c2d1117d4981dabceb5af6de.tar.bz2 |
Change env_get_char from a global function ptr to a function
This avoids an early global data reference.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Diffstat (limited to 'include')
-rw-r--r-- | include/environment.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/environment.h b/include/environment.h index bf9f669..dcb7c5a 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); |