mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-28 00:10:25 -07:00
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
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user