aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-14 23:22:40 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-14 23:22:40 -0800
commit5b7313273ad99d8da69425beb3b1b3f09025caed (patch)
treec87489203337ab3a342fe4137673f6cb870e4f62 /include
parentb4fdf7a04fc1018f1114fb8ee6f16009752cd16f (diff)
downloadnng-5b7313273ad99d8da69425beb3b1b3f09025caed.tar.gz
nng-5b7313273ad99d8da69425beb3b1b3f09025caed.tar.bz2
nng-5b7313273ad99d8da69425beb3b1b3f09025caed.zip
pipe: nng_pipe_notify should use nng_err
Diffstat (limited to 'include')
-rw-r--r--include/nng/nng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nng/nng.h b/include/nng/nng.h
index e2200f17..b3c5ae14 100644
--- a/include/nng/nng.h
+++ b/include/nng/nng.h
@@ -337,7 +337,7 @@ typedef void (*nng_pipe_cb)(nng_pipe, nng_pipe_ev, void *);
// nng_pipe_notify registers a callback to be executed when the
// given event is triggered. To watch for different events, register
// multiple times. Each event can have at most one callback registered.
-NNG_DECL int nng_pipe_notify(nng_socket, nng_pipe_ev, nng_pipe_cb, void *);
+NNG_DECL nng_err nng_pipe_notify(nng_socket, nng_pipe_ev, nng_pipe_cb, void *);
// nng_listen creates a listening endpoint with no special options,
// and starts it listening. It is functionally equivalent to the legacy