summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/regress_http.c3
-rw-r--r--test/regress_ws.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/test/regress_http.c b/test/regress_http.c
index 626908c6..1af425e3 100644
--- a/test/regress_http.c
+++ b/test/regress_http.c
@@ -965,7 +965,8 @@ http_custom_cb(struct evhttp_request *req, void *arg)
int empty = evhttp_find_header(evhttp_request_get_input_headers(req), "Empty") != NULL;
/* Expecting a CUSTOM request */
- if (evhttp_request_get_command(req) != EVHTTP_REQ_CUSTOM) {
+ uint32_t command = evhttp_request_get_command(req);
+ if (command != EVHTTP_REQ_CUSTOM) {
fprintf(stdout, "FAILED (custom type)\n");
exit(1);
}
diff --git a/test/regress_ws.c b/test/regress_ws.c
index df4a84e7..436cb627 100644
--- a/test/regress_ws.c
+++ b/test/regress_ws.c
@@ -58,10 +58,12 @@
#include "regress_http.h"
#include "regress_ws.h"
+#undef htonll
#define htonll(x) \
((1 == htonl(1)) \
? (x) \
: ((uint64_t)htonl((x)&0xFFFFFFFF) << 32) | htonl((x) >> 32))
+#undef ntohll
#define ntohll(x) htonll(x)