From 575148ac9a274d61e45220fda7d8de6a420f4fe4 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 14 Jan 2025 08:29:37 -0800 Subject: api: pipes should use nng_err --- src/core/pipe.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/pipe.h') diff --git a/src/core/pipe.h b/src/core/pipe.h index dcdca418..aa7a0598 100644 --- a/src/core/pipe.h +++ b/src/core/pipe.h @@ -36,12 +36,12 @@ extern void nni_pipe_close(nni_pipe *); extern uint16_t nni_pipe_peer(nni_pipe *); // nni_pipe_getopt looks up the option. -extern int nni_pipe_getopt( +extern nng_err nni_pipe_getopt( nni_pipe *, const char *, void *, size_t *, nni_opt_type); // nni_pipe_find finds a pipe given its ID. It places a hold on the // pipe, which must be released by the caller when it is done. -extern int nni_pipe_find(nni_pipe **, uint32_t); +extern nng_err nni_pipe_find(nni_pipe **, uint32_t); // nni_pipe_sock_id returns the socket id for the pipe (used by public API). extern uint32_t nni_pipe_sock_id(nni_pipe *); -- cgit v1.2.3-70-g09d2