From ec84c5a8406bb203d5f8830e280f93cf1f63cd6a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 16 May 2018 10:52:55 -0700 Subject: Switch to clang 6 and gcc 8 on xenial for circle ci. We also fixed some warnings found by gcc8. --- tests/httpserver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/httpserver.c') diff --git a/tests/httpserver.c b/tests/httpserver.c index acbe237a..fb8e300e 100644 --- a/tests/httpserver.c +++ b/tests/httpserver.c @@ -17,8 +17,8 @@ // Basic HTTP server tests. #include "core/nng_impl.h" -#include "supplemental/tls/tls.h" #include "supplemental/http/http.h" +#include "supplemental/tls/tls.h" const char *doc1 = "Someone is home!"; const char *doc2 = "This is a text file."; @@ -157,7 +157,6 @@ fail: } TestMain("HTTP Server", { - nng_http_server * s; nng_http_handler *h; @@ -167,7 +166,7 @@ TestMain("HTTP Server", { Convey("We can start an HTTP server", { nng_aio *aio; char portbuf[16]; - char urlstr[32]; + char urlstr[48]; nng_url *url; trantest_next_address(portbuf, "%u"); @@ -445,6 +444,5 @@ TestMain("HTTP Server", { nng_http_res_free(res); nng_url_free(curl); }); - }); }) -- cgit v1.2.3-70-g09d2