[Asterisk-cvs] asterisk/stdtime localtime.c,1.6,1.7

markster at lists.digium.com markster at lists.digium.com
Tue Jun 8 20:42:08 CDT 2004


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

Modified Files:
	localtime.c 
Log Message:
Merge FreeBSD locking fixes (bug #1411)


Index: localtime.c
===================================================================
RCS file: /usr/cvsroot/asterisk/stdtime/localtime.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- localtime.c	27 Oct 2003 20:00:41 -0000	1.6
+++ localtime.c	9 Jun 2004 01:45:08 -0000	1.7
@@ -184,10 +184,10 @@
 
 static int		gmt_is_set;
 #ifdef	_THREAD_SAFE
-static ast_mutex_t		lcl_mutex   = AST_MUTEX_INITIALIZER;
-static ast_mutex_t		tzset_mutex	= AST_MUTEX_INITIALIZER;
-static ast_mutex_t		tzsetwall_mutex	= AST_MUTEX_INITIALIZER;
-static ast_mutex_t		gmt_mutex   = AST_MUTEX_INITIALIZER;
+AST_MUTEX_DEFINE_STATIC(lcl_mutex);
+AST_MUTEX_DEFINE_STATIC(tzset_mutex);
+AST_MUTEX_DEFINE_STATIC(tzsetwall_mutex);
+AST_MUTEX_DEFINE_STATIC(gmt_mutex);
 #endif
 
 /*




More information about the svn-commits mailing list