From: Aki Tuomi Date: Thu, 28 May 2020 06:50:04 +0000 (+0300) Subject: opensslsigners: Add missing 'static' keyword X-Git-Tag: dnsdist-1.5.0-rc3~37^2 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fpdns.git;a=commitdiff_plain;h=c2700b669a35c51675febec46e3b3788ff1672f1 opensslsigners: Add missing 'static' keyword openssl_pthreads_locking_callback and openssl_pthreads_id_callback are local functions, so they need static. --- 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(); }