diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-12-28 16:02:53 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-12-28 16:02:53 -0800 |
| commit | aa3bb50aeca3b7350a41f0538817c49d9656d207 (patch) | |
| tree | 4abafbdc7553e52776394e067fa1ff9a08a14a57 /tests/httpclient.c | |
| parent | 838d92deabffbaae1b1a9e447d2088f966078726 (diff) | |
| download | nng-aa3bb50aeca3b7350a41f0538817c49d9656d207.tar.gz nng-aa3bb50aeca3b7350a41f0538817c49d9656d207.tar.bz2 nng-aa3bb50aeca3b7350a41f0538817c49d9656d207.zip | |
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.
Diffstat (limited to 'tests/httpclient.c')
| -rw-r--r-- | tests/httpclient.c | 12 |
1 files changed, 5 insertions, 7 deletions
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; |
