diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-06-04 11:18:12 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-04 11:18:12 +0200 |
commit | 952c64b4c095b93678518e4e5bead07fd1110275 (patch) | |
tree | 5c25b88a3f43b5ee730e3e3bfa88db58631d6aaf | |
parent | bcaeaf17afce8303768a5f0c643688ea77415f41 (diff) | |
download | libssh-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.c | 5 |
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){ |