]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tevent: remove unneeded type argument from DLIST_ADD_END
authorMichael Adam <obnox@samba.org>
Fri, 5 Feb 2016 10:37:42 +0000 (11:37 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 6 Feb 2016 20:48:17 +0000 (21:48 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent_immediate.c
lib/tevent/tevent_queue.c
lib/tevent/tevent_util.h

index 1ac293e1758ac986293384052c4edd8e4e27a240..9ff53223430630525fbc1a4b02f41d4d4b7fa17f 100644 (file)
@@ -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,
index 35742e595f51e7b0324031440a3cfc331bab7f52..cefe91ae165419a4d493964141bc06e113ae13cf 100644 (file)
@@ -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);
 
index 6f91983ae9d953fc5cfaf8db19a14f2b3a072cf2..12b6de742128c1f5c8d4233a89d6a4ad5d1feedf 100644 (file)
@@ -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)
 
 /*