dlist: remove unneeded type argument from DLIST_CONCATENATE()
authorMichael Adam <obnox@samba.org>
Fri, 5 Feb 2016 11:03:33 +0000 (12:03 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 6 Feb 2016 20:48:18 +0000 (21:48 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/dlinklist.h
lib/util/tests/dlinklist.c

index f3528a3cfef090b0f6108de5e4d20e32557cd978..0d95ae43fb796fa0eebbe8c5691fbdfe3c94fd3f 100644 (file)
@@ -160,9 +160,8 @@ do { \
 /*
    concatenate two lists - putting all elements of the 2nd list at the
    end of the first list.
-   Note that 'type' is ignored
 */
-#define DLIST_CONCATENATE(list1, list2, type)  \
+#define DLIST_CONCATENATE(list1, list2) \
 do { \
        if (!(list1)) { \
                (list1) = (list2); \
index f743607f0f1c7c6901a1f7c944ee22ead7e18f08..50adab3b79e68bdf510de2dd7ae092b2c6afdc98 100644 (file)
@@ -100,7 +100,7 @@ static bool torture_local_dlinklist_simple(struct torture_context *tctx)
        torture_assert_int_equal(tctx, i, 6, "should have 6 elements");
 
        torture_comment(tctx, "check DLIST_CONCATENATE\n");
-       DLIST_CONCATENATE(l1, l2, NULL);
+       DLIST_CONCATENATE(l1, l2);
        torture_comment(tctx, "count forward\n");
        for (i=0,el=l1; el; el=el->next) i++;
        torture_assert_int_equal(tctx, i, 12, "should have 12 elements");