[asterisk-commits] rizzo: branch rizzo/astobj2 r47301 - /team/rizzo/astobj2/main/astobj2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Nov 7 16:28:52 MST 2006


Author: rizzo
Date: Tue Nov  7 17:28:51 2006
New Revision: 47301

URL: http://svn.digium.com/view/asterisk?rev=47301&view=rev
Log:
remove a mistake in previous commit


Modified:
    team/rizzo/astobj2/main/astobj2.c

Modified: team/rizzo/astobj2/main/astobj2.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/astobj2.c?rev=47301&r1=47300&r2=47301&view=diff
==============================================================================
--- team/rizzo/astobj2/main/astobj2.c (original)
+++ team/rizzo/astobj2/main/astobj2.c Tue Nov  7 17:28:51 2006
@@ -283,8 +283,6 @@
 	astobj2_callback(c, OBJ_SINGLE | OBJ_UNLINK | OBJ_POINTER, match_by_addr, user_data);
 	/* the container has changed its content, so we update the version */
 	ast_atomic_fetchadd_int(&c->version, 1);
-	/* XXX actually we should check whether the callback succeeds or not */
-	ast_atomic_fetchadd_int(&c->elements, -1);
 	astobj2_ref(user_data, -1);
 	return NULL;
 }



More information about the asterisk-commits mailing list