aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/pubsub
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/pubsub
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/pubsub')
-rw-r--r--src/protocol/pubsub/pub.c2
-rw-r--r--src/protocol/pubsub/sub.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/pubsub/pub.c b/src/protocol/pubsub/pub.c
index b7ac361e..10a9760f 100644
--- a/src/protocol/pubsub/pub.c
+++ b/src/protocol/pubsub/pub.c
@@ -286,7 +286,7 @@ pub_sock_getopt(void *arg, int opt, void *buf, size_t *szp)
int rv = NNG_ENOTSUP;
if (opt == nng_optid_raw) {
- rv = nni_getopt_int(&s->raw, buf, szp);
+ rv = nni_getopt_int(s->raw, buf, szp);
}
return (rv);
}
diff --git a/src/protocol/pubsub/sub.c b/src/protocol/pubsub/sub.c
index 0dbad081..5f4b497d 100644
--- a/src/protocol/pubsub/sub.c
+++ b/src/protocol/pubsub/sub.c
@@ -274,7 +274,7 @@ sub_sock_getopt(void *arg, int opt, void *buf, size_t *szp)
int rv = NNG_ENOTSUP;
if (opt == nng_optid_raw) {
- rv = nni_getopt_int(&s->raw, buf, szp);
+ rv = nni_getopt_int(s->raw, buf, szp);
}
return (rv);
}