Pass NULL for the ao2_callback function pointer instead of duplicating cb_true.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239114 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2010-01-11 16:41:44 +00:00
parent ba6201cae6
commit ea47ab7ed9
4 changed files with 4 additions and 25 deletions

View File

@@ -68,11 +68,6 @@ struct caldav_pvt {
struct ao2_container *events;
};
static int cb_true(void *user_data, void *arg, int flags)
{
return CMP_MATCH;
}
static void caldav_destructor(void *obj)
{
struct caldav_pvt *pvt = obj;
@@ -83,7 +78,7 @@ static void caldav_destructor(void *obj)
}
ast_string_field_free_memory(pvt);
ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, cb_true, NULL);
ao2_callback(pvt->events, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL);
ao2_ref(pvt->events, -1);
}