Просмотр исходного кода

These compat symbols can be static

Bryan Drewery 6 лет назад
Родитель
Сommit
9e628eb860
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/compat/openssl.cc

+ 2 - 2
src/compat/openssl.cc

@@ -7,7 +7,7 @@
 
 extern "C" {
 typedef int (*OPENSSL_init_ssl_t)(uint64_t a1, const void *a2);
-int _OPENSSL_init_ssl(uint64_t a1, const void *a2) {
+static int _OPENSSL_init_ssl(uint64_t a1, const void *a2) {
   if (DLSYM_VAR(OPENSSL_init_ssl) == NULL)
     if (DLSYM_GLOBAL_SIMPLE(RTLD_NEXT, OPENSSL_init_ssl) == NULL)
       return 0;
@@ -38,7 +38,7 @@ void _SSL_load_error_strings(void) {
 }
 
 typedef void *(*TLS_client_method_t)(void);
-const void *_TLS_client_method(void) {
+static const void *_TLS_client_method(void) {
   if (DLSYM_VAR(TLS_client_method) == NULL)
     if (DLSYM_GLOBAL_SIMPLE(RTLD_NEXT, TLS_client_method) == NULL)
       return NULL;