aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-07 16:03:51 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-07 16:03:51 -0800
commit91b3c83ce71dba060f418192488debf16f003e74 (patch)
tree7eb1d696eafed26a63185c0158fd339eaa949150 /src/supplemental/http
parenta2cb5607702bb503e634261742602881026e3b5d (diff)
downloadnng-91b3c83ce71dba060f418192488debf16f003e74.tar.gz
nng-91b3c83ce71dba060f418192488debf16f003e74.tar.bz2
nng-91b3c83ce71dba060f418192488debf16f003e74.zip
fixes #224 Windows pipe name restrictions, unicode
While here, we cleaned up a few other unused variables in the HTTP code.
Diffstat (limited to 'src/supplemental/http')
-rw-r--r--src/supplemental/http/http_conn.c2
-rw-r--r--src/supplemental/http/http_server.c4
2 files changed, 1 insertions, 5 deletions
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);