From 7d00f23ad44d18c7041c925f7f556d5d1fe641ac Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 9 Jun 2004 01:45:08 +0000 Subject: Merge FreeBSD locking fixes (bug #1411) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3176 f38db490-d61c-443f-a65b-d21fe96a405b --- cli.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index 6fa4e28fd..69d9e67fb 100755 --- a/cli.c +++ b/cli.c @@ -46,8 +46,7 @@ void ast_cli(int fd, char *fmt, ...) free(stuff); } -ast_mutex_t clilock = AST_MUTEX_INITIALIZER; - +AST_MUTEX_DEFINE_STATIC(clilock); struct ast_cli_entry *helpers = NULL; @@ -157,7 +156,7 @@ static int handle_unload(int fd, int argc, char *argv[]) #define MODLIST_FORMAT "%-25s %-40.40s %-10d\n" #define MODLIST_FORMAT2 "%-25s %-40.40s %-10s\n" -static ast_mutex_t climodentrylock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(climodentrylock); static int climodentryfd = -1; static int modlist_modentry(char *module, char *description, int usecnt) -- cgit v1.2.3