backport some mutex initialization and linked list handling fixes from trunk

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-05-23 17:15:23 +00:00
parent f1c97e7df8
commit 75ca02dbaa
6 changed files with 60 additions and 25 deletions

View File

@@ -57,7 +57,7 @@ struct ast_dnsmgr_entry {
char name[1];
};
static AST_LIST_HEAD(entry_list, ast_dnsmgr_entry) entry_list;
static AST_LIST_HEAD_STATIC(entry_list, ast_dnsmgr_entry);
AST_MUTEX_DEFINE_STATIC(refresh_lock);
@@ -289,7 +289,6 @@ int dnsmgr_init(void)
ast_log(LOG_ERROR, "Unable to create schedule context.\n");
return -1;
}
AST_LIST_HEAD_INIT(&entry_list);
ast_cli_register(&cli_reload);
ast_cli_register(&cli_status);
return do_reload(1);