unit-tests: Avoid name clash with clone() from <sched.h>

This commit is contained in:
Martin Willi
2013-11-06 10:31:01 +01:00
parent 1254ad01b9
commit 45766923b8
@@ -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;