From c2700b669a35c51675febec46e3b3788ff1672f1 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 28 May 2020 09:50:04 +0300 Subject: [PATCH] opensslsigners: Add missing 'static' keyword openssl_pthreads_locking_callback and openssl_pthreads_id_callback are local functions, so they need static. --- pdns/opensslsigners.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/opensslsigners.cc b/pdns/opensslsigners.cc index 5fc8110a43..983f39fb6b 100644 --- a/pdns/opensslsigners.cc +++ b/pdns/opensslsigners.cc @@ -46,7 +46,7 @@ static std::vector 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(); } -- 2.47.2