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);
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits