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>
This commit is contained in:

committed by
Wolfgang Denk

parent
27269417ad
commit
b502611b51
@@ -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);
|
||||
|
Reference in New Issue
Block a user