1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

dlist: remove unneeded type argument from DLIST_CONCATENATE()

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Michael Adam 2016-02-05 12:03:33 +01:00 committed by Jeremy Allison
parent 0f6c00b6ae
commit 2fd63ec80a
2 changed files with 2 additions and 3 deletions

View 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); \

View 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");