aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-01-19 09:41:12 -0800
committerGarrett D'Amore <garrett@damore.org>2020-01-19 09:41:12 -0800
commit15f5a7d8cee6416bf4748d15f97ac59c13c2ac75 (patch)
treeb93041d73c186ffe6e4cb7dd2541bf34ff659b77 /src/nng.c
parent0ace5d416cd77898b19bc124881aff4f5151f12f (diff)
downloadnng-15f5a7d8cee6416bf4748d15f97ac59c13c2ac75.tar.gz
nng-15f5a7d8cee6416bf4748d15f97ac59c13c2ac75.tar.bz2
nng-15f5a7d8cee6416bf4748d15f97ac59c13c2ac75.zip
fixes #1145 nng_msg options should be removed
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nng.c b/src/nng.c
index d758adab..944d43fc 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -1101,10 +1101,17 @@ nng_msg_set_pipe(nng_msg *msg, nng_pipe p)
nni_msg_set_pipe(msg, p.id);
}
+// This function is not supported, but we keep it around to
+// satisfy link dependencies in old programs. It has never done
+// anything useful.
int
nng_msg_getopt(nng_msg *msg, int opt, void *ptr, size_t *szp)
{
- return (nni_msg_getopt(msg, opt, ptr, szp));
+ NNI_ARG_UNUSED(msg);
+ NNI_ARG_UNUSED(opt);
+ NNI_ARG_UNUSED(ptr);
+ NNI_ARG_UNUSED(szp);
+ return (NNG_ENOTSUP);
}
int