Fix little macro (bug #3100)
authorMark Spencer <markster@digium.com>
Sun, 19 Dec 2004 18:33:05 +0000 (18:33 +0000)
committerMark Spencer <markster@digium.com>
Sun, 19 Dec 2004 18:33:05 +0000 (18:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4486 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/linkedlists.h

index 6fd7787..75f0aa2 100755 (executable)
@@ -4,10 +4,10 @@
 #include <asterisk/lock.h>
 
 #define AST_LIST_LOCK(head)                                            \
-       ast_mutex_lock(&head->lock) 
+       ast_mutex_lock(&(head)->lock) 
        
 #define AST_LIST_UNLOCK(head)                                          \
-       ast_mutex_unlock(&head->lock)
+       ast_mutex_unlock(&(head)->lock)
 
 #define AST_LIST_HEAD(name, type)                                      \
 struct name {                                                          \