aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_public.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplemental/http/http_public.c')
-rw-r--r--src/supplemental/http/http_public.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/supplemental/http/http_public.c b/src/supplemental/http/http_public.c
index e493a994..633f83c7 100644
--- a/src/supplemental/http/http_public.c
+++ b/src/supplemental/http/http_public.c
@@ -20,7 +20,6 @@ int
nng_http_req_alloc(nng_http_req **reqp, const nng_url *url)
{
#ifdef NNG_SUPP_HTTP
- nni_init();
return (nni_http_req_alloc(reqp, url));
#else
NNI_ARG_UNUSED(reqp);
@@ -53,7 +52,6 @@ int
nng_http_res_alloc(nng_http_res **resp)
{
#ifdef NNG_SUPP_HTTP
- nni_init();
return (nni_http_res_alloc(resp));
#else
NNI_ARG_UNUSED(resp);
@@ -64,7 +62,6 @@ nng_http_res_alloc(nng_http_res **resp)
int
nng_http_res_alloc_error(nng_http_res **resp, uint16_t code)
{
- nni_init();
#ifdef NNG_SUPP_HTTP
return (nni_http_res_alloc_error(resp, code));
#else
@@ -510,7 +507,6 @@ nng_http_handler_alloc(
nng_http_handler **hp, const char *uri, void (*cb)(nng_aio *))
{
#ifdef NNG_SUPP_HTTP
- nni_init();
return (nni_http_handler_init(hp, uri, cb));
#else
NNI_ARG_UNUSED(hp);
@@ -677,7 +673,6 @@ int
nng_http_server_hold(nng_http_server **srvp, const nng_url *url)
{
#ifdef NNG_SUPP_HTTP
- nni_init();
return (nni_http_server_init(srvp, url));
#else
NNI_ARG_UNUSED(srvp);
@@ -836,7 +831,6 @@ int
nng_http_client_alloc(nng_http_client **clip, const nng_url *url)
{
#ifdef NNG_SUPP_HTTP
- nni_init();
return (nni_http_client_init(clip, url));
#else
NNI_ARG_UNUSED(clip);