From 91b3c83ce71dba060f418192488debf16f003e74 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 7 Feb 2018 16:03:51 -0800 Subject: fixes #224 Windows pipe name restrictions, unicode While here, we cleaned up a few other unused variables in the HTTP code. --- src/supplemental/http/http_conn.c | 2 -- src/supplemental/http/http_server.c | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/supplemental') diff --git a/src/supplemental/http/http_conn.c b/src/supplemental/http/http_conn.c index 6a72a731..726f3ea3 100644 --- a/src/supplemental/http/http_conn.c +++ b/src/supplemental/http/http_conn.c @@ -401,8 +401,6 @@ http_wr_cb(void *arg) nni_aio * uaio; int rv; size_t n; - int niov; - nni_iov * iov; nni_mtx_lock(&conn->mtx); diff --git a/src/supplemental/http/http_server.c b/src/supplemental/http/http_server.c index 21a88f9e..4a426c8c 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -1116,8 +1116,7 @@ http_handle_file(nni_aio *aio) void * data; size_t size; int rv; - http_file * hf = nni_http_handler_get_data(h); - char * path = nni_http_handler_get_data(h); + http_file * hf = nni_http_handler_get_data(h); const char * ctype; if ((ctype = hf->ctype) == NULL) { @@ -1366,7 +1365,6 @@ nni_http_handler_init_directory( http_file * hf; nni_http_handler *h; int rv; - char * p; if ((hf = NNI_ALLOC_STRUCT(hf)) == NULL) { return (NNG_ENOMEM); -- cgit v1.2.3-70-g09d2