[asterisk-commits] tilghman: trunk r58949 - /trunk/main/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Mar 15 17:02:44 MST 2007


Author: tilghman
Date: Thu Mar 15 19:02:43 2007
New Revision: 58949

URL: http://svn.digium.com/view/asterisk?view=rev&rev=58949
Log:
Fix trunk so that it compiles again

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=58949&r1=58948&r2=58949
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Thu Mar 15 19:02:43 2007
@@ -3078,8 +3078,8 @@
 
 	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 @@
 		if (appname)
 			break;
 	}
-	AST_LIST_UNLOCK(&apps);
+	AST_RWLIST_UNLOCK(&apps);
 
 	fclose(f);
 



More information about the asterisk-commits mailing list