From: Michiel van Baak Date: Mon, 27 Jul 2009 09:56:13 +0000 (+0000) Subject: backport rev 205532 from trunk: X-Git-Tag: 1.4.26.2~4^2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f05b9b9de6b5f654558c6f2445ea894347b943e;p=thirdparty%2Fasterisk.git backport rev 205532 from trunk: 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@208990 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_crypto.c b/res/res_crypto.c index 4e958f91e3..aa4cc9ecab 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -108,7 +108,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)