aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 23:14:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 23:14:20 +0000
commit851e45a6f74090d3f8f3a08e8fe63452d45c8d4d (patch)
tree3c47a975118719d50e685b7bf257f7885ce4bff9 /res/res_agi.c
parentb2f6516547afd5b4fe901e927b8fb2a4c4288f8e (diff)
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.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76711 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 47c8ba8d8..44ff18d43 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1629,7 +1629,7 @@ static struct agi_command commands[MAX_COMMANDS] = {
{ { "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 @@ static int unload_module(void)
}
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);