Fix little macro (bug #3100)
[asterisk/asterisk.git] / 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 {                                                          \