diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/sockfd.c | 4 | ||||
| -rw-r--r-- | src/core/stream.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); |
