From 5b35daaf2fe6c6fbe0b15740efbffe16ff278e6c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 29 Dec 2018 16:16:57 -0800 Subject: IPC option rework (pipe/conn) to reduce code duplication. --- src/supplemental/ipc/ipc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/supplemental/ipc') diff --git a/src/supplemental/ipc/ipc.c b/src/supplemental/ipc/ipc.c index 36c18563..f5e590fc 100644 --- a/src/supplemental/ipc/ipc.c +++ b/src/supplemental/ipc/ipc.c @@ -54,13 +54,15 @@ nng_ipc_recv(nng_ipc *ipc, nng_aio *aio) int nng_ipc_setopt(nng_ipc *ipc, const char *name, const void *val, size_t sz) { - return (nni_ipc_conn_setopt((void *) ipc, name, val, sz)); + return ( + nni_ipc_conn_setopt((void *) ipc, name, val, sz, NNI_TYPE_OPAQUE)); } int nng_ipc_getopt(nng_ipc *ipc, const char *name, void *val, size_t *szp) { - return (nni_ipc_conn_getopt((void *) ipc, name, val, szp)); + return (nni_ipc_conn_getopt( + (void *) ipc, name, val, szp, NNI_TYPE_OPAQUE)); } int -- cgit v1.2.3-70-g09d2