Skip to contentSkip to conversation

environment: fix bug introduced by commit a8409f4f1ac8

PATCH New Wolfgang Denk 1 participant 1 message May 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 environment: fix bug introduced by commit a8409f4f1ac8

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

---
 include/environment.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/environment.h +2 -2
index 946a393..bf9f669 100644
@@ -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);
Signature · 1 line
1.5.4.2