mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
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
This commit is contained in:
@@ -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(®istrations);
|
||||
while ((reg = AST_LIST_REMOVE_HEAD(®istrations, entry))) {
|
||||
@@ -12972,7 +12972,7 @@ static void delete_users(void)
|
||||
}
|
||||
AST_LIST_UNLOCK(®istrations);
|
||||
|
||||
ao2_callback(peers, 0, peer_delme_cb, NULL);
|
||||
ao2_callback(peers, OBJ_NODATA, peer_delme_cb, NULL);
|
||||
}
|
||||
|
||||
static void prune_users(void)
|
||||
|
Reference in New Issue
Block a user