From 7bb5ab9c4f70c9fa0a67a22c4aee83b0109318c4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 27 Apr 2025 23:35:25 -0700 Subject: Converted property functions to use nng_err. --- src/sp/protocol/pubsub0/pub.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/sp/protocol/pubsub0/pub.c') diff --git a/src/sp/protocol/pubsub0/pub.c b/src/sp/protocol/pubsub0/pub.c index db449cde..5104162b 100644 --- a/src/sp/protocol/pubsub0/pub.c +++ b/src/sp/protocol/pubsub0/pub.c @@ -249,7 +249,7 @@ pub0_sock_send(void *arg, nni_aio *aio) nni_aio_finish(aio, 0, len); } -static int +static nng_err pub0_sock_get_sendfd(void *arg, int *fdp) { pub0_sock *sock = arg; @@ -259,15 +259,15 @@ pub0_sock_get_sendfd(void *arg, int *fdp) return (nni_pollable_getfd(&sock->sendable, fdp)); } -static int +static nng_err pub0_sock_set_sendbuf(void *arg, const void *buf, size_t sz, nni_type t) { pub0_sock *sock = arg; pub0_pipe *p; int val; - int rv; + nng_err rv; - if ((rv = nni_copyin_int(&val, buf, sz, 1, 8192, t)) != 0) { + if ((rv = nni_copyin_int(&val, buf, sz, 1, 8192, t)) != NNG_OK) { return (rv); } @@ -287,7 +287,7 @@ pub0_sock_set_sendbuf(void *arg, const void *buf, size_t sz, nni_type t) return (rv); } -static int +static nng_err pub0_sock_get_sendbuf(void *arg, void *buf, size_t *szp, nni_type t) { pub0_sock *sock = arg; -- cgit v1.2.3-70-g09d2