diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-01-19 09:41:12 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-01-19 09:41:12 -0800 |
| commit | 15f5a7d8cee6416bf4748d15f97ac59c13c2ac75 (patch) | |
| tree | b93041d73c186ffe6e4cb7dd2541bf34ff659b77 /src/nng.c | |
| parent | 0ace5d416cd77898b19bc124881aff4f5151f12f (diff) | |
| download | nng-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.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |
