From: Mark Michelson Date: Thu, 8 Nov 2007 21:31:06 +0000 (+0000) Subject: AST_LIST_REMOVE_CURRENT takes only one argument. X-Git-Tag: 1.6.0-beta1~3^2~927 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0881f07aed1670a854df65205fbe5df6d3bebf30;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/threadstorage.c b/main/threadstorage.c index 01bab356ba..a03f3c98b2 100644 --- a/main/threadstorage.c +++ b/main/threadstorage.c @@ -78,7 +78,7 @@ void __ast_threadstorage_object_remove(void *key) AST_RWLIST_WRLOCK(&tls_objects); AST_LIST_TRAVERSE_SAFE_BEGIN(&tls_objects, to, entry) { if (to->key == key) { - AST_LIST_REMOVE_CURRENT(&tls_objects, entry); + AST_LIST_REMOVE_CURRENT(entry); break; } }