Commit 8b6197b8 authored by Michael Tremer's avatar Michael Tremer

test: Fix compiling AS test after header change

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent e551b48c
......@@ -106,11 +106,20 @@ int main(int argc, char** argv) {
loc_database_enumerator_set_string(enumerator, "10");
as = loc_database_enumerator_next_as(enumerator);
err = loc_database_enumerator_next_as(enumerator, &as);
if (err) {
fprintf(stderr, "Could not enumerate next AS\n");
exit(EXIT_FAILURE);
}
while (as) {
printf("Found AS%d: %s\n", loc_as_get_number(as), loc_as_get_name(as));
as = loc_database_enumerator_next_as(enumerator);
err = loc_database_enumerator_next_as(enumerator, &as);
if (err) {
fprintf(stderr, "Could not enumerate next AS\n");
exit(EXIT_FAILURE);
}
}
loc_database_enumerator_unref(enumerator);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment