[asterisk-commits] file: trunk r76711 - /trunk/res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 23 18:14:21 CDT 2007


Author: file
Date: Mon Jul 23 18:14:20 2007
New Revision: 76711

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76711
Log:
You need to put static in front of a static RWLIST declaration to make it really static... and don't call AST_RWLIST_HEAD_DESTROY on a statically declared list.

Modified:
    trunk/res/res_agi.c

Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=76711&r1=76710&r2=76711
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Mon Jul 23 18:14:20 2007
@@ -1629,7 +1629,7 @@
 	{ { "wait", "for", "digit", NULL }, handle_waitfordigit, "Waits for a digit to be pressed", usage_waitfordigit , 0 },
 };
 
-AST_RWLIST_HEAD_STATIC(agi_commands, agi_command);
+static AST_RWLIST_HEAD_STATIC(agi_commands, agi_command);
 
 static int help_workhorse(int fd, char *match[])
 {
@@ -2169,7 +2169,6 @@
 	}
 	AST_RWLIST_TRAVERSE_SAFE_END
 	AST_RWLIST_UNLOCK(&agi_commands);
-	AST_RWLIST_HEAD_DESTROY(&agi_commands);
 	ast_unregister_application(eapp);
 	ast_unregister_application(deadapp);
 	return ast_unregister_application(app);




More information about the asterisk-commits mailing list