diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-09 01:45:08 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-06-09 01:45:08 +0000 |
commit | 7d00f23ad44d18c7041c925f7f556d5d1fe641ac (patch) | |
tree | e9c8ee99dcb97720b3dfb49c87b2f2c0b6f6f6b6 /channels/chan_local.c | |
parent | 523e96fd0323806ed98ca6ce3e58831fc5a392dc (diff) |
Merge FreeBSD locking fixes (bug #1411)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3176 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rwxr-xr-x | channels/chan_local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index 86ed6d17a..c6cb4c7cf 100755 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -49,12 +49,12 @@ static char *tdesc = "Local Proxy Channel Driver"; static int capability = -1; static int usecnt =0; -static ast_mutex_t usecnt_lock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(usecnt_lock); #define IS_OUTBOUND(a,b) (a == b->chan ? 1 : 0) /* Protect the interface list (of sip_pvt's) */ -static ast_mutex_t locallock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(locallock); static struct local_pvt { ast_mutex_t lock; /* Channel private lock */ |