Kaynağa Gözat

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

Andrei Pelinescu-Onciul 17 yıl önce
ebeveyn
işleme
ee7f9cb4c0
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 3 3
      socket_info.h
  2. 1 1
      tls_hooks.h

+ 3 - 3
socket_info.h

@@ -43,12 +43,12 @@
 #include "globals.h"
 /* struct socket_info is defined in ip_addr.h */
 
-struct socket_info* udp_listen;
+extern struct socket_info* udp_listen;
 #ifdef USE_TCP
-struct socket_info* tcp_listen;
+extern struct socket_info* tcp_listen;
 #endif
 #ifdef USE_TLS
-struct socket_info* tls_listen;
+extern struct socket_info* tls_listen;
 #endif
 
 

+ 1 - 1
tls_hooks.h

@@ -66,7 +66,7 @@ struct tls_hooks{
 };
 
 
-struct tls_hooks tls_hook;
+extern struct tls_hooks tls_hook;
 
 #ifdef __SUNPRO_C
 	#define tls_hook_call(name, ret_not_set, ...) \