mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +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:
@@ -1420,7 +1420,7 @@ static int __ast_cli_register(struct ast_cli_entry *e, struct ast_cli_entry *ed)
|
||||
if (lf < len)
|
||||
len = lf;
|
||||
if (strncasecmp(e->_full_cmd, cur->_full_cmd, len) < 0) {
|
||||
AST_RWLIST_INSERT_BEFORE_CURRENT(&helpers, e, list);
|
||||
AST_RWLIST_INSERT_BEFORE_CURRENT(e, list);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user