[asterisk-commits] mvanbaak: trunk r205532 - /trunk/main/ssl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 9 03:31:28 CDT 2009


Author: mvanbaak
Date: Thu Jul  9 03:31:24 2009
New Revision: 205532

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=205532
Log:
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

Modified:
    trunk/main/ssl.c

Modified: trunk/main/ssl.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/ssl.c?view=diff&rev=205532&r1=205531&r2=205532
==============================================================================
--- trunk/main/ssl.c (original)
+++ trunk/main/ssl.c Thu Jul  9 03:31:24 2009
@@ -45,7 +45,7 @@
 
 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)




More information about the asterisk-commits mailing list