summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-03-16 00:02:43 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-03-16 00:02:43 +0000
commit8c4c5d9910e5f1dba06337c85a622f86d7e5df7d (patch)
tree501a5ccb46824e0fa2465f676e3fbdd8b43e18f6 /main/pbx.c
parent7f31b58b2173578207664497a5cee1e4cbecf4f2 (diff)
Fix trunk so that it compiles again
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 3e0070aa4..4f36b81f3 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -3078,8 +3078,8 @@ static int handle_core_dumpappdocs(int fd, int argc, char *argv[])
fprintf(f, "%% This file is automatically generated. Any manual edits will be lost.\n");
- AST_LIST_LOCK(&apps);
- AST_LIST_TRAVERSE(&apps, app, list) {
+ AST_RWLIST_RDLOCK(&apps);
+ AST_RWLIST_TRAVERSE(&apps, app, list) {
if (appname && strcasecmp(app->name, appname))
continue;
@@ -3096,7 +3096,7 @@ static int handle_core_dumpappdocs(int fd, int argc, char *argv[])
if (appname)
break;
}
- AST_LIST_UNLOCK(&apps);
+ AST_RWLIST_UNLOCK(&apps);
fclose(f);