[asterisk-commits] russell: branch russell/iax_refcount r80294 - /team/russell/iax_refcount/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 22 12:23:05 CDT 2007


Author: russell
Date: Wed Aug 22 12:23:05 2007
New Revision: 80294

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80294
Log:
tweak ao2_iterator_init

Modified:
    team/russell/iax_refcount/main/astobj2.c

Modified: team/russell/iax_refcount/main/astobj2.c
URL: http://svn.digium.com/view/asterisk/team/russell/iax_refcount/main/astobj2.c?view=diff&rev=80294&r1=80293&r2=80294
==============================================================================
--- team/russell/iax_refcount/main/astobj2.c (original)
+++ team/russell/iax_refcount/main/astobj2.c Wed Aug 22 12:23:05 2007
@@ -490,13 +490,11 @@
  */
 ao2_iterator ao2_iterator_init(ao2_container *c, int flags)
 {
-	ao2_iterator a;
-	a.c = c;
-	a.flags = flags;
-	a.c_version = 0;
-	a.bucket = 0;
-	a.version = 0;
-	a.obj = NULL;
+	ao2_iterator a = {
+		.c = c,
+		.flags = flags
+	};
+	
 	return a;
 }
 




More information about the asterisk-commits mailing list