chan_iax2: Use OBJ_NODATA to be a bit more explicit.

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
certified/11.2
Russell Bryant 13 years ago
parent 0ec73946fa
commit d6d7f51476

@ -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)

Loading…
Cancel
Save