From 5943d0abab253605d39155b21e59ebb006c3581a Mon Sep 17 00:00:00 2001 From: seanbright Date: Mon, 11 Jan 2010 16:41:44 +0000 Subject: Pass NULL for the ao2_callback function pointer instead of duplicating cb_true. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239114 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_calendar_icalendar.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'res/res_calendar_icalendar.c') diff --git a/res/res_calendar_icalendar.c b/res/res_calendar_icalendar.c index 7e7fa8033..08ef8f519 100644 --- a/res/res_calendar_icalendar.c +++ b/res/res_calendar_icalendar.c @@ -64,11 +64,6 @@ struct icalendar_pvt { struct ao2_container *events; }; -static int cb_true(void *user_data, void *arg, int flags) -{ - return CMP_MATCH; -} - static void icalendar_destructor(void *obj) { struct icalendar_pvt *pvt = obj; @@ -82,7 +77,7 @@ static void icalendar_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); } -- cgit v1.2.3