diff options
author | Mark Spencer <markster@digium.com> | 2004-06-09 01:45:08 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-06-09 01:45:08 +0000 |
commit | 727abcdec7ad92fc2fae2585c5c609e0663858a6 (patch) | |
tree | e9c8ee99dcb97720b3dfb49c87b2f2c0b6f6f6b6 /pbx | |
parent | c96046b6c2c34b77bcc8a86ab5816c092d21bd7b (diff) |
Merge FreeBSD locking fixes (bug #1411)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_config.c | 2 | ||||
-rwxr-xr-x | pbx/pbx_gtkconsole.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 2d47c4db1..0c0cbd1b6 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -42,7 +42,7 @@ static char *registrar = "pbx_config"; static int static_config = 0; static int write_protect_config = 1; -static ast_mutex_t save_dialplan_lock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(save_dialplan_lock); static struct ast_context *local_contexts = NULL; diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c index 86755d245..fa2ac21ac 100755 --- a/pbx/pbx_gtkconsole.c +++ b/pbx/pbx_gtkconsole.c @@ -41,7 +41,7 @@ #include "../asterisk.h" #include "../astconf.h" -static ast_mutex_t verb_lock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(verb_lock); static pthread_t console_thread; |