chan_iax2: Use OBJ_NODATA to be a bit more explicit.
authorRussell Bryant <russell@russellbryant.com>
Sat, 24 Mar 2012 03:18:13 +0000 (03:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 24 Mar 2012 03:18:13 +0000 (03:18 +0000)
This is just a minor code cleanup change.  These uses of ao2_callback() would
never return anything since the callbacks always returned 0.  However, be more
explicit that no returned results are wanted by specifying OBJ_NODATA.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360369 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index d8fdc0e..3928ed8 100644 (file)
@@ -12950,7 +12950,7 @@ static void delete_users(void)
 {
        struct iax2_registry *reg;
 
-       ao2_callback(users, 0, user_delme_cb, NULL);
+       ao2_callback(users, OBJ_NODATA, user_delme_cb, NULL);
 
        AST_LIST_LOCK(&registrations);
        while ((reg = AST_LIST_REMOVE_HEAD(&registrations, entry))) {
@@ -12972,7 +12972,7 @@ static void delete_users(void)
        }
        AST_LIST_UNLOCK(&registrations);
 
-       ao2_callback(peers, 0, peer_delme_cb, NULL);
+       ao2_callback(peers, OBJ_NODATA, peer_delme_cb, NULL);
 }
 
 static void prune_users(void)