mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -212,11 +212,6 @@ static int parse_cdata(void *data, char *value, size_t len)
|
||||
return IKS_OK;
|
||||
}
|
||||
|
||||
static int cb_true(void *user_data, void *arg, int flags)
|
||||
{
|
||||
return CMP_MATCH;
|
||||
}
|
||||
|
||||
static void exchangecal_destructor(void *obj)
|
||||
{
|
||||
struct exchangecal_pvt *pvt = obj;
|
||||
@@ -227,7 +222,7 @@ static void exchangecal_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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user