From 15f5a7d8cee6416bf4748d15f97ac59c13c2ac75 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 19 Jan 2020 09:41:12 -0800 Subject: fixes #1145 nng_msg options should be removed --- src/nng.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/nng.c') 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 -- cgit v1.2.3-70-g09d2