Browse code

- fixes: missing extern for variables declared in *.h files (can cause different symbols with the same name => unexpected bugs)

Andrei Pelinescu-Onciul authored on 15/04/2008 17:38:33
Showing 2 changed files
... ...
@@ -43,12 +43,12 @@
43 43
 #include "globals.h"
44 44
 /* struct socket_info is defined in ip_addr.h */
45 45
 
46
-struct socket_info* udp_listen;
46
+extern struct socket_info* udp_listen;
47 47
 #ifdef USE_TCP
48
-struct socket_info* tcp_listen;
48
+extern struct socket_info* tcp_listen;
49 49
 #endif
50 50
 #ifdef USE_TLS
51
-struct socket_info* tls_listen;
51
+extern struct socket_info* tls_listen;
52 52
 #endif
53 53
 
54 54
 
... ...
@@ -66,7 +66,7 @@ struct tls_hooks{
66 66
 };
67 67
 
68 68
 
69
-struct tls_hooks tls_hook;
69
+extern struct tls_hooks tls_hook;
70 70
 
71 71
 #ifdef __SUNPRO_C
72 72
 	#define tls_hook_call(name, ret_not_set, ...) \