From 70ae513e4dda50864f7d45b6676549ed5246144d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 27 Apr 2025 22:09:42 -0700 Subject: Transport listen: use nng_err --- src/core/sockfd.c | 4 ++-- src/core/stream.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/sockfd.c b/src/core/sockfd.c index f67ab64f..3a43359d 100644 --- a/src/core/sockfd.c +++ b/src/core/sockfd.c @@ -69,12 +69,12 @@ sfd_listener_stop(void *arg) sfd_listener_close(arg); } -static int +static nng_err sfd_listener_listen(void *arg) { NNI_ARG_UNUSED(arg); // nothing really for us to do - return (0); + return (NNG_OK); } static void diff --git a/src/core/stream.h b/src/core/stream.h index ebc13b26..5a07e5e5 100644 --- a/src/core/stream.h +++ b/src/core/stream.h @@ -68,7 +68,7 @@ struct nng_stream_listener { void (*sl_free)(void *); void (*sl_close)(void *); void (*sl_stop)(void *); - int (*sl_listen)(void *); + nng_err (*sl_listen)(void *); void (*sl_accept)(void *, nng_aio *); int (*sl_get)(void *, const char *, void *, size_t *, nni_type); int (*sl_set)(void *, const char *, const void *, size_t, nni_type); -- cgit v1.2.3-70-g09d2