aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nng.c b/src/nng.c
index b05667c4..6363636d 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -48,11 +48,13 @@ nng_socket_protocol(nng_socket *s)
return (nni_socket_proto(s));
}
+
int
nng_recvmsg(nng_socket *s, nng_msg **msgp, int flags)
{
int rv;
nni_duration expire;
+
if ((rv = nni_init()) != 0) {
return (rv);
}
@@ -65,6 +67,7 @@ nng_recvmsg(nng_socket *s, nng_msg **msgp, int flags)
return (nni_socket_recvmsg(s, msgp, expire));
}
+
// Misc.
const char *
nng_strerror(int num)