dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@205532 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mvanbaak 2009-07-09 08:31:24 +00:00
parent 4fc4098a76
commit e8c95985ba
1 changed files with 1 additions and 1 deletions

View File

@ -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)