From f04cfd27e2d67b0fc89b079410fc11b55b6d1979 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 29 Aug 2017 14:17:11 -0700 Subject: Add improved getopt functions, pass integers by value. --- src/protocol/survey/survey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/protocol/survey/survey.c') diff --git a/src/protocol/survey/survey.c b/src/protocol/survey/survey.c index 09fe0768..e90c7f57 100644 --- a/src/protocol/survey/survey.c +++ b/src/protocol/survey/survey.c @@ -300,9 +300,9 @@ surv_sock_getopt(void *arg, int opt, void *buf, size_t *szp) int rv = NNG_ENOTSUP; if (opt == nng_optid_surveyor_surveytime) { - rv = nni_getopt_usec(&s->survtime, buf, szp); + rv = nni_getopt_usec(s->survtime, buf, szp); } else if (opt == nng_optid_raw) { - rv = nni_getopt_int(&s->raw, buf, szp); + rv = nni_getopt_int(s->raw, buf, szp); } return (rv); } -- cgit v1.2.3-70-g09d2