From aa3bb50aeca3b7350a41f0538817c49d9656d207 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 28 Dec 2017 16:02:53 -0800 Subject: Fix compilation warnings, bugs, and crashes found on Windows. This addresses a number of problems that were found on Windows, including one bug that actually turned up in testing on POSIX. --- tests/httpclient.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'tests/httpclient.c') diff --git a/tests/httpclient.c b/tests/httpclient.c index ab4f46a2..6ea6fa6e 100644 --- a/tests/httpclient.c +++ b/tests/httpclient.c @@ -30,13 +30,11 @@ TestMain("HTTP Client", { atexit(nng_fini); Convey("Given a TCP connection to httpbin.org", { - nni_plat_tcp_ep * ep; - nni_plat_tcp_pipe *p; - nng_aio * aio; - nni_aio * iaio; - nng_sockaddr rsa; - nni_http_client * cli; - nni_http * http; + nng_aio * aio; + nni_aio * iaio; + nng_sockaddr rsa; + nni_http_client *cli; + nni_http * http; So(nng_aio_alloc(&aio, NULL, NULL) == 0); iaio = (nni_aio *) aio; -- cgit v1.2.3-70-g09d2