summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0ec7394)
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
{
struct iax2_registry *reg;
{
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))) {
AST_LIST_LOCK(®istrations);
while ((reg = AST_LIST_REMOVE_HEAD(®istrations, entry))) {
}
AST_LIST_UNLOCK(®istrations);
}
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)
}
static void prune_users(void)