1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

async dns: test app: dont use exp as ambiguous

This commit is contained in:
Andy Green 2020-04-11 16:48:47 +01:00
parent ff53a89db2
commit 478ee963f1

View file

@ -12,7 +12,7 @@
#include <libwebsockets.h>
#include <signal.h>
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);
}