Skip to content
Snippets Groups Projects
Commit 0881f07a authored by Mark Michelson's avatar Mark Michelson
Browse files

AST_LIST_REMOVE_CURRENT takes only one argument.

Thanks to snuffy for pointing this out on IRC



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89122 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e4187a7a
No related merge requests found
...@@ -78,7 +78,7 @@ void __ast_threadstorage_object_remove(void *key) ...@@ -78,7 +78,7 @@ void __ast_threadstorage_object_remove(void *key)
AST_RWLIST_WRLOCK(&tls_objects); AST_RWLIST_WRLOCK(&tls_objects);
AST_LIST_TRAVERSE_SAFE_BEGIN(&tls_objects, to, entry) { AST_LIST_TRAVERSE_SAFE_BEGIN(&tls_objects, to, entry) {
if (to->key == key) { if (to->key == key) {
AST_LIST_REMOVE_CURRENT(&tls_objects, entry); AST_LIST_REMOVE_CURRENT(entry);
break; break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment