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:
parent
0824f77142
commit
71a7064c19
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue