aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-04 11:18:12 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-04 11:18:12 +0200
commit952c64b4c095b93678518e4e5bead07fd1110275 (patch)
tree5c25b88a3f43b5ee730e3e3bfa88db58631d6aaf
parentbcaeaf17afce8303768a5f0c643688ea77415f41 (diff)
downloadlibssh-952c64b4c095b93678518e4e5bead07fd1110275.tar.gz
libssh-952c64b4c095b93678518e4e5bead07fd1110275.tar.xz
libssh-952c64b4c095b93678518e4e5bead07fd1110275.zip
threads: Fix compiler warning
Use a protype for libcrypto_lock_callback(). Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/threads.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/threads.c b/src/threads.c
index 191b3b64..52d437df 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -132,7 +132,10 @@ static int libmbedcrypto_thread_init(void)
static void **libcrypto_mutexes;
-static void libcrypto_lock_callback(int mode, int i, const char *file, int line){
+void libcrypto_lock_callback(int mode, int i, const char *file, int line);
+
+void libcrypto_lock_callback(int mode, int i, const char *file, int line)
+{
(void)file;
(void)line;
if(mode & CRYPTO_LOCK){