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:
parent
0f6c00b6ae
commit
2fd63ec80a
@ -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); \
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user