]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
set correct type for lock initializers
authorLuigi Rizzo <rizzo@icir.org>
Thu, 11 May 2006 20:21:11 +0000 (20:21 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 11 May 2006 20:21:11 +0000 (20:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26991 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/lock.h

index cef17cfc2b0f83567c15b168f26898c019a66046..1ac5f4ba78071edd8cb39a91aaaaa1a75a46029b 100644 (file)
@@ -571,11 +571,11 @@ static inline int __ast_cond_timedwait(const char *filename, int lineno, const c
 #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)
 {
        pthread_mutexattr_t attr;