[Asterisk-cvs] asterisk/include/asterisk linkedlists.h,1.5,1.6

markster at lists.digium.com markster at lists.digium.com
Sun Dec 19 13:37:02 CST 2004


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv5449/include/asterisk

Modified Files:
	linkedlists.h 
Log Message:
Fix little macro (bug #3100)


Index: linkedlists.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/linkedlists.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- linkedlists.h	22 Jun 2004 18:49:00 -0000	1.5
+++ linkedlists.h	19 Dec 2004 18:33:05 -0000	1.6
@@ -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 {								\




More information about the svn-commits mailing list