Browse Source

environment: fix bug introduced by commit a8409f4f1ac8

env_get_char is not a function, but a pointer to one.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Wolfgang Denk 17 năm trước cách đây
mục cha
commit
4f805c1e3a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      include/environment.h

+ 2 - 2
include/environment.h

@@ -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);