From a45a413db3bdce126d5cb28ed49b776fdebb4b1d Mon Sep 17 00:00:00 2001 From: kpfleming Date: Thu, 8 Nov 2007 05:28:47 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@89106 f38db490-d61c-443f-a65b-d21fe96a405b --- main/devicestate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/devicestate.c') diff --git a/main/devicestate.c b/main/devicestate.c index aef21f70a..c36fa694c 100644 --- a/main/devicestate.c +++ b/main/devicestate.c @@ -372,7 +372,7 @@ int ast_devstate_prov_del(const char *label) AST_RWLIST_WRLOCK(&devstate_provs); AST_RWLIST_TRAVERSE_SAFE_BEGIN(&devstate_provs, devcb, list) { if (!strcasecmp(devcb->label, label)) { - AST_RWLIST_REMOVE_CURRENT(&devstate_provs, list); + AST_RWLIST_REMOVE_CURRENT(list); ast_free(devcb); res = 0; break; -- cgit v1.2.3