diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-11 16:41:44 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-11 16:41:44 +0000 |
commit | 5943d0abab253605d39155b21e59ebb006c3581a (patch) | |
tree | 90afc2b66dac5a6c03a8bf4b83d365701da24602 /res/res_calendar_exchange.c | |
parent | 62fe2d93d1952f6a2837cb4dc382db8e26fe6221 (diff) |
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
Diffstat (limited to 'res/res_calendar_exchange.c')
-rw-r--r-- | res/res_calendar_exchange.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/res/res_calendar_exchange.c b/res/res_calendar_exchange.c index 05a42633a..4722e6e88 100644 --- a/res/res_calendar_exchange.c +++ b/res/res_calendar_exchange.c @@ -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); } |