aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/pair/pair_v1.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-29 14:17:11 -0700
committerGarrett D'Amore <garrett@damore.org>2017-09-22 12:33:03 -0700
commitf04cfd27e2d67b0fc89b079410fc11b55b6d1979 (patch)
treeb177a2fd79de4f1293e54e7a4d6990a135f0d65b /src/protocol/pair/pair_v1.c
parent72147bcfbdc568bc58877e0904b92013d82a2acd (diff)
downloadnng-f04cfd27e2d67b0fc89b079410fc11b55b6d1979.tar.gz
nng-f04cfd27e2d67b0fc89b079410fc11b55b6d1979.tar.bz2
nng-f04cfd27e2d67b0fc89b079410fc11b55b6d1979.zip
Add improved getopt functions, pass integers by value.
Diffstat (limited to 'src/protocol/pair/pair_v1.c')
-rw-r--r--src/protocol/pair/pair_v1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol/pair/pair_v1.c b/src/protocol/pair/pair_v1.c
index d6c8ea75..68dbc6f7 100644
--- a/src/protocol/pair/pair_v1.c
+++ b/src/protocol/pair/pair_v1.c
@@ -432,15 +432,15 @@ pair1_sock_getopt(void *arg, int opt, void *buf, size_t *szp)
if (opt == nng_optid_raw) {
nni_mtx_lock(&s->mtx);
- rv = nni_getopt_int(&s->raw, buf, szp);
+ rv = nni_getopt_int(s->raw, buf, szp);
nni_mtx_unlock(&s->mtx);
} else if (opt == nng_optid_maxttl) {
nni_mtx_lock(&s->mtx);
- rv = nni_getopt_int(&s->ttl, buf, szp);
+ rv = nni_getopt_int(s->ttl, buf, szp);
nni_mtx_unlock(&s->mtx);
} else if (opt == nng_optid_pair1_poly) {
nni_mtx_lock(&s->mtx);
- rv = nni_getopt_int(&s->poly, buf, szp);
+ rv = nni_getopt_int(s->poly, buf, szp);
nni_mtx_unlock(&s->mtx);
}
return (rv);