]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
opensslsigners: Add missing 'static' keyword 9166/head
authorAki Tuomi <cmouse@cmouse.fi>
Thu, 28 May 2020 06:50:04 +0000 (09:50 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Thu, 28 May 2020 06:50:04 +0000 (09:50 +0300)
openssl_pthreads_locking_callback and openssl_pthreads_id_callback are
local functions, so they need static.

pdns/opensslsigners.cc

index 5fc8110a439a76d6d5bf863153414917a860a8f5..983f39fb6b3c995c73da4c2a3e911cadd650cfa2 100644 (file)
@@ -46,7 +46,7 @@
 static std::vector<std::mutex> openssllocks;
 
 extern "C" {
-void openssl_pthreads_locking_callback(int mode, int type, const char *file, int line)
+static void openssl_pthreads_locking_callback(int mode, int type, const char *file, int line)
 {
   if (mode & CRYPTO_LOCK) {
     openssllocks.at(type).lock();
@@ -56,7 +56,7 @@ void openssl_pthreads_locking_callback(int mode, int type, const char *file, int
   }
 }
 
-unsigned long openssl_pthreads_id_callback()
+static unsigned long openssl_pthreads_id_callback(void)
 {
   return (unsigned long)pthread_self();
 }