diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-14 08:29:37 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-14 21:11:12 -0800 |
| commit | 575148ac9a274d61e45220fda7d8de6a420f4fe4 (patch) | |
| tree | 60e6b255d2aa5fe5a29889c436aba2edb2908bd5 /src/core/pipe.c | |
| parent | 6dc757342f5f9dedf38de356ae1802546f976bcc (diff) | |
| download | nng-575148ac9a274d61e45220fda7d8de6a420f4fe4.tar.gz nng-575148ac9a274d61e45220fda7d8de6a420f4fe4.tar.bz2 nng-575148ac9a274d61e45220fda7d8de6a420f4fe4.zip | |
api: pipes should use nng_err
Diffstat (limited to 'src/core/pipe.c')
| -rw-r--r-- | src/core/pipe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c index d7cd6bc0..c57a8d43 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2025 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // Copyright 2018 Devolutions <info@devolutions.net> // @@ -75,7 +75,7 @@ pipe_reap(void *arg) nni_pipe_rele(p); } -int +nng_err nni_pipe_find(nni_pipe **pp, uint32_t id) { nni_pipe *p; @@ -90,7 +90,7 @@ nni_pipe_find(nni_pipe **pp, uint32_t id) *pp = p; } nni_mtx_unlock(&pipes_lk); - return (p == NULL ? NNG_ENOENT : 0); + return (p == NULL ? NNG_ENOENT : NNG_OK); } void @@ -330,11 +330,11 @@ nni_pipe_alloc_listener(void **datap, nni_listener *l) return (0); } -int +nng_err nni_pipe_getopt( nni_pipe *p, const char *name, void *val, size_t *szp, nni_opt_type t) { - int rv; + nng_err rv; rv = p->p_tran_ops.p_getopt(p->p_tran_data, name, val, szp, t); if (rv != NNG_ENOTSUP) { |
