[asterisk-commits] trunk r26991 - /trunk/include/asterisk/lock.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 11 13:21:11 MST 2006


Author: rizzo
Date: Thu May 11 15:21:11 2006
New Revision: 26991

URL: http://svn.digium.com/view/asterisk?rev=26991&view=rev
Log:
set correct type for lock initializers


Modified:
    trunk/include/asterisk/lock.h

Modified: trunk/include/asterisk/lock.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/lock.h?rev=26991&r1=26990&r2=26991&view=diff
==============================================================================
--- trunk/include/asterisk/lock.h (original)
+++ trunk/include/asterisk/lock.h Thu May 11 15:21:11 2006
@@ -571,10 +571,10 @@
 #else /* !DEBUG_THREADS */
 
 
-#define AST_MUTEX_INIT_VALUE	PTHREAD_MUTEX_INIT_VALUE
-
 
 typedef pthread_mutex_t ast_mutex_t;
+
+#define AST_MUTEX_INIT_VALUE	((ast_mutex_t)PTHREAD_MUTEX_INIT_VALUE)
 
 static inline int ast_mutex_init(ast_mutex_t *pmutex)
 {



More information about the asterisk-commits mailing list