diff options
Diffstat (limited to 'src/protocol/pair1')
| -rw-r--r-- | src/protocol/pair1/pair.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/protocol/pair1/pair.c b/src/protocol/pair1/pair.c index 564118ae..ee67cf7b 100644 --- a/src/protocol/pair1/pair.c +++ b/src/protocol/pair1/pair.c @@ -408,10 +408,10 @@ pair1_sock_setopt_raw(void *arg, const void *buf, size_t sz) } static int -pair1_sock_getopt_raw(void *arg, void *buf, size_t *szp) +pair1_sock_getopt_raw(void *arg, void *buf, size_t *szp, int typ) { pair1_sock *s = arg; - return (nni_getopt_bool(s->raw, buf, szp)); + return (nni_copyout_bool(s->raw, buf, szp, typ)); } static int @@ -426,10 +426,10 @@ pair1_sock_setopt_maxttl(void *arg, const void *buf, size_t sz) } static int -pair1_sock_getopt_maxttl(void *arg, void *buf, size_t *szp) +pair1_sock_getopt_maxttl(void *arg, void *buf, size_t *szp, int typ) { pair1_sock *s = arg; - return (nni_getopt_int(s->ttl, buf, szp)); + return (nni_copyout_int(s->ttl, buf, szp, typ)); } static int @@ -444,10 +444,10 @@ pair1_sock_setopt_poly(void *arg, const void *buf, size_t sz) } static int -pair1_sock_getopt_poly(void *arg, void *buf, size_t *szp) +pair1_sock_getopt_poly(void *arg, void *buf, size_t *szp, int typ) { pair1_sock *s = arg; - return (nni_getopt_bool(s->poly, buf, szp)); + return (nni_copyout_bool(s->poly, buf, szp, typ)); } static void |
