diff --git a/minimal-examples/api-tests/api-test-async-dns/main.c b/minimal-examples/api-tests/api-test-async-dns/main.c index 518daa183..83b8931ca 100644 --- a/minimal-examples/api-tests/api-test-async-dns/main.c +++ b/minimal-examples/api-tests/api-test-async-dns/main.c @@ -12,7 +12,7 @@ #include #include -static int interrupted, dtest, ok, fail, exp = 26; +static int interrupted, dtest, ok, fail, _exp = 26; struct lws_context *context; /* @@ -290,7 +290,7 @@ main(int argc, const char **argv) } #if !defined(LWS_WITH_IPV6) - exp -= 2; + _exp -= 2; #endif /* kick off the async dns tests */ @@ -305,11 +305,11 @@ main(int argc, const char **argv) lws_context_destroy(context); - if (fail || ok != exp) - lwsl_user("Completed: PASS: %d / %d, FAIL: %d\n", ok, exp, + if (fail || ok != _exp) + lwsl_user("Completed: PASS: %d / %d, FAIL: %d\n", ok, _exp, fail); else - lwsl_user("Completed: ALL PASS: %d / %d\n", ok, exp); + lwsl_user("Completed: ALL PASS: %d / %d\n", ok, _exp); - return !(ok == exp && !fail); + return !(ok == _exp && !fail); }