unit-tests: Avoid name clash with clone() from <sched.h>
authorMartin Willi <martin@revosec.ch>
Tue, 22 Oct 2013 16:21:01 +0000 (18:21 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 6 Nov 2013 09:31:01 +0000 (10:31 +0100)
src/libstrongswan/tests/suites/test_linked_list.c

index c0c997e..922f954 100644 (file)
@@ -307,7 +307,7 @@ struct clone_t {
        void *(*clone)(clone_t *item);
 };
 
-static void *clone(clone_t *item)
+static void *clonefn(clone_t *item)
 {
        return item->val;
 }
@@ -330,11 +330,11 @@ START_TEST(test_clone_offset)
 {
        linked_list_t *other;
        clone_t items[] = {
-               { .val = (void*)1, .clone = clone, },
-               { .val = (void*)2, .clone = clone, },
-               { .val = (void*)3, .clone = clone, },
-               { .val = (void*)4, .clone = clone, },
-               { .val = (void*)5, .clone = clone, },
+               { .val = (void*)1, .clone = clonefn, },
+               { .val = (void*)2, .clone = clonefn, },
+               { .val = (void*)3, .clone = clonefn, },
+               { .val = (void*)4, .clone = clonefn, },
+               { .val = (void*)5, .clone = clonefn, },
        };
        int i;