[svn-commits] mvanbaak: branch 1.4 r208990 - /branches/1.4/res/res_crypto.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jul 27 04:56:18 CDT 2009


Author: mvanbaak
Date: Mon Jul 27 04:56:13 2009
New Revision: 208990

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

Modified:
    branches/1.4/res/res_crypto.c

Modified: branches/1.4/res/res_crypto.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/res/res_crypto.c?view=diff&rev=208990&r1=208989&r2=208990
==============================================================================
--- branches/1.4/res/res_crypto.c (original)
+++ branches/1.4/res/res_crypto.c Mon Jul 27 04:56:13 2009
@@ -108,7 +108,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 svn-commits mailing list