aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nng.c b/src/nng.c
index eb08991a..8cf0d04f 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -102,6 +102,7 @@ nng_dial(nng_socket *s, const char *addr, nng_endpt **epp, int flags)
return (nni_socket_dial(s, addr, epp, flags));
}
+
int
nng_setopt(nng_socket *s, int opt, const void *val, size_t sz)
{
@@ -166,6 +167,7 @@ int
nng_pipe_getopt(nng_pipe *pipe, int opt, void *val, size_t *sizep)
{
int rv;
+
NNI_INIT_INT();
rv = nni_pipe_getopt(pipe, opt, val, sizep);
if (rv == ENOTSUP) {