Merged revisions 205532 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
  r205532 | mvanbaak | 2009-07-09 10:31:24 +0200 (Thu, 09 Jul 2009) | 5 lines
  
  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/branches/1.6.1@205534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Michiel van Baak
2009-07-09 08:33:36 +00:00
parent 4d54c69ab8
commit d721eb39b8

View File

@@ -45,7 +45,7 @@ static int ssl_num_locks;
static unsigned long ssl_threadid(void) 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) static void ssl_lock(int mode, int n, const char *file, int line)