From: Michiel van Baak Date: Thu, 9 Jul 2009 08:31:24 +0000 (+0000) Subject: pthread_self returns a pthread_t which is not an unsigned int on all X-Git-Tag: 11.0.0-beta1~4524 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d19ab4efecf4b67b86261643124d805e26aee90;p=thirdparty%2Fasterisk.git pthread_self returns a pthread_t which is not an unsigned int on all pthread implementations. Casting it to an unsigned int fixes compiler warnings. Tested on OpenBSD and Linux both 32 and 64 bit git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@205532 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/ssl.c b/main/ssl.c index 99c2cb4a89..40129f84f5 100644 --- a/main/ssl.c +++ b/main/ssl.c @@ -45,7 +45,7 @@ static int ssl_num_locks; static unsigned long ssl_threadid(void) { - return pthread_self(); + return (unsigned long)pthread_self(); } static void ssl_lock(int mode, int n, const char *file, int line)