aboutsummaryrefslogtreecommitdiff
path: root/tests/httpserver.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-05-16 10:52:55 -0700
committerGarrett D'Amore <garrett@damore.org>2018-05-16 11:42:06 -0700
commitec84c5a8406bb203d5f8830e280f93cf1f63cd6a (patch)
tree740fb689639e5f3a6b5bda849af4aed3e63659c4 /tests/httpserver.c
parent84c32ea006f01f10cea335a9b152ec68714f46c9 (diff)
downloadnng-ec84c5a8406bb203d5f8830e280f93cf1f63cd6a.tar.gz
nng-ec84c5a8406bb203d5f8830e280f93cf1f63cd6a.tar.bz2
nng-ec84c5a8406bb203d5f8830e280f93cf1f63cd6a.zip
Switch to clang 6 and gcc 8 on xenial for circle ci.
We also fixed some warnings found by gcc8.
Diffstat (limited to 'tests/httpserver.c')
-rw-r--r--tests/httpserver.c6
1 files changed, 2 insertions, 4 deletions
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 = "<html><body>Someone <b>is</b> home!</body</html>";
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);
});
-
});
})