From: Michael Adam Date: Fri, 5 Feb 2016 10:37:42 +0000 (+0100) Subject: tevent: remove unneeded type argument from DLIST_ADD_END X-Git-Tag: tevent-0.9.27~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a091c0ac6891a1ec3e15af7808a9c19533bcfb7c;p=thirdparty%2Fsamba.git tevent: remove unneeded type argument from DLIST_ADD_END Signed-off-by: Michael Adam Reviewed-by: Jeremy Allison --- diff --git a/lib/tevent/tevent_immediate.c b/lib/tevent/tevent_immediate.c index 1ac293e1758..9ff53223430 100644 --- a/lib/tevent/tevent_immediate.c +++ b/lib/tevent/tevent_immediate.c @@ -88,7 +88,7 @@ void tevent_common_schedule_immediate(struct tevent_immediate *im, im->cancel_fn = NULL; im->additional_data = NULL; - DLIST_ADD_END(ev->immediate_events, im, struct tevent_immediate *); + DLIST_ADD_END(ev->immediate_events, im); talloc_set_destructor(im, tevent_common_immediate_destructor); tevent_debug(ev, TEVENT_DEBUG_TRACE, diff --git a/lib/tevent/tevent_queue.c b/lib/tevent/tevent_queue.c index 35742e595f5..cefe91ae165 100644 --- a/lib/tevent/tevent_queue.c +++ b/lib/tevent/tevent_queue.c @@ -195,7 +195,7 @@ static struct tevent_queue_entry *tevent_queue_add_internal( allow_direct = false; } - DLIST_ADD_END(queue->list, e, struct tevent_queue_entry *); + DLIST_ADD_END(queue->list, e); queue->length++; talloc_set_destructor(e, tevent_queue_entry_destructor); diff --git a/lib/tevent/tevent_util.h b/lib/tevent/tevent_util.h index 6f91983ae9d..12b6de74212 100644 --- a/lib/tevent/tevent_util.h +++ b/lib/tevent/tevent_util.h @@ -131,9 +131,8 @@ do { \ /* add to the end of a list. - Note that 'type' is ignored */ -#define DLIST_ADD_END(list, p, type) \ +#define DLIST_ADD_END(list, p) \ do { \ if (!(list)) { \ DLIST_ADD(list, p); \ @@ -156,7 +155,7 @@ do { \ #define DLIST_DEMOTE(list, p, type) \ do { \ DLIST_REMOVE(list, p); \ - DLIST_ADD_END(list, p, NULL); \ + DLIST_ADD_END(list, p); \ } while (0) /*