Make casts work again properly (bug #3155)
authorMark Spencer <markster@digium.com>
Wed, 29 Dec 2004 23:11:51 +0000 (23:11 +0000)
committerMark Spencer <markster@digium.com>
Wed, 29 Dec 2004 23:11:51 +0000 (23:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4596 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/astobj.h

index a70cf70..61d183f 100755 (executable)
@@ -60,12 +60,12 @@ extern "C" {
        ASTOBJ_COMPONENTS_NOLOCK_FULL(type,ASTOBJ_DEFAULT_NAMELEN,1)
 
 #define ASTOBJ_COMPONENTS(type) \
-       ast_mutex_t _lock; \
-       ASTOBJ_COMPONENTS_NOLOCK(type)
+       ASTOBJ_COMPONENTS_NOLOCK(type); \
+       ast_mutex_t _lock; 
        
 #define ASTOBJ_COMPONENTS_FULL(type,namelen,hashes) \
-       ast_mutex_t _lock; \
-       ASTOBJ_COMPONENTS_NOLOCK_FULL(type,namelen,hashes)
+       ASTOBJ_COMPONENTS_NOLOCK_FULL(type,namelen,hashes); \
+       ast_mutex_t _lock; 
 
 #define ASTOBJ_REF(object) \
        ({ \