mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Continue merging in changes from resolve-shadow-warnings. funcs/ this time.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -170,13 +170,13 @@ static struct ast_custom_function config_function = {
|
||||
|
||||
static int unload_module(void)
|
||||
{
|
||||
struct config_item *cur;
|
||||
struct config_item *current;
|
||||
int res = ast_custom_function_unregister(&config_function);
|
||||
|
||||
AST_RWLIST_WRLOCK(&configs);
|
||||
while ((cur = AST_RWLIST_REMOVE_HEAD(&configs, entry))) {
|
||||
ast_config_destroy(cur->cfg);
|
||||
ast_free(cur);
|
||||
while ((current = AST_RWLIST_REMOVE_HEAD(&configs, entry))) {
|
||||
ast_config_destroy(current->cfg);
|
||||
ast_free(current);
|
||||
}
|
||||
AST_RWLIST_UNLOCK(&configs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user