]> git.sur5r.net Git - u-boot/commitdiff
environment: fix bug introduced by commit a8409f4f1ac8
authorWolfgang Denk <wd@denx.de>
Wed, 14 May 2008 21:34:53 +0000 (23:34 +0200)
committerWolfgang Denk <wd@denx.de>
Wed, 14 May 2008 21:36:10 +0000 (23:36 +0200)
env_get_char is not a function, but a pointer to one.

Signed-off-by: Wolfgang Denk <wd@denx.de>
include/environment.h

index 946a393e30ef100347ea8a8164967a9d5bbd77b4..bf9f669127f9727c8ae15a115ab9bdb496c2f4a2 100644 (file)
@@ -107,8 +107,8 @@ typedef     struct environment_s {
        unsigned char   data[ENV_SIZE]; /* Environment data             */
 } env_t;
 
-/* Function that returns a character from the environment */
-unsigned char (*env_get_char)(int);
+/* Pointer to function that returns a character from the environment */
+extern unsigned char (*env_get_char)(int);
 
 /* Function that returns a pointer to a value from the environment */
 unsigned char *env_get_addr(int);