X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Flibpspp%2Fabt-test.c;h=1b0d00998be621d3959a9f4c2a2b4e7eac5ad6d3;hb=f7b9a55c1ed1e390584a402afbcbc4b4615a9a18;hp=3e68637a5bee3b38eec64011d5f7df87d43bccf2;hpb=4f27990acf19285948333da6b3d663abdf2117c9;p=pspp diff --git a/tests/libpspp/abt-test.c b/tests/libpspp/abt-test.c index 3e68637a5b..1b0d00998b 100644 --- a/tests/libpspp/abt-test.c +++ b/tests/libpspp/abt-test.c @@ -26,7 +26,6 @@ #include -#include #include #include #include @@ -119,7 +118,7 @@ static int aux_data; static struct element * abt_node_to_element (const struct abt_node *node) { - return abt_data (node, struct element, node); + return ABT_DATA (node, struct element, node); } /* Compares the `x' values in A and B and returns a strcmp-type @@ -253,7 +252,7 @@ static struct element * find_by_position (struct abt *abt, int position) { struct abt_node *p; - for (p = abt->root; p != NULL; ) + for (p = abt->root; p != NULL;) { int p_pos = p->down[0] ? abt_node_to_element (p->down[0])->count : 0; if (position == p_pos)