From cc01b0e34256480b47b24ba82295ff87432b27f8 Mon Sep 17 00:00:00 2001 From: "Fabio M. Di Nitto" Date: Tue, 20 Nov 2018 05:31:58 +0100 Subject: [PATCH] [openssl] fix return type for pthread_self spotted on freebsd-devel Signed-off-by: Fabio M. Di Nitto --- libknet/crypto_openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libknet/crypto_openssl.c b/libknet/crypto_openssl.c index 7bfa18f..ca06c45 100644 --- a/libknet/crypto_openssl.c +++ b/libknet/crypto_openssl.c @@ -415,9 +415,9 @@ static void openssl_internal_locking_callback(int mode, int type, char *file, in } } -static unsigned long openssl_internal_thread_id(void) +static pthread_t openssl_internal_thread_id(void) { - return (unsigned long)pthread_self(); + return pthread_self(); } static void openssl_internal_lock_cleanup(void) -- 2.39.5