mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
improve linked-list macros in two ways:
- the *_CURRENT macros no longer need the list head pointer argument - add AST_LIST_MOVE_CURRENT to encapsulate the remove/add operation when moving entries between lists git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -933,7 +933,7 @@ static int remove_from_interfaces(const char *interface)
|
||||
if (!strcasecmp(curint->interface, interface)) {
|
||||
if (!interface_exists_global(interface)) {
|
||||
ast_debug(1, "Removing %s from the list of interfaces that make up all of our queue members.\n", interface);
|
||||
AST_LIST_REMOVE_CURRENT(&interfaces, list);
|
||||
AST_LIST_REMOVE_CURRENT(list);
|
||||
ast_free(curint);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user