From 03f812ccb2876aacd10e589f996b5ec9e0133d5b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 27 Apr 2025 22:02:04 -0700 Subject: More nng_err -- this time for dialer and listener allocations. --- src/core/sockfd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/sockfd.c') diff --git a/src/core/sockfd.c b/src/core/sockfd.c index 758cb755..f67ab64f 100644 --- a/src/core/sockfd.c +++ b/src/core/sockfd.c @@ -1,5 +1,5 @@ // -// Copyright 2024 Staysail Systems, Inc. +// Copyright 2025 Staysail Systems, Inc. // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -20,7 +20,7 @@ // accept is performed, then another slot is available. #define NNG_SFD_LISTEN_QUEUE 16 -int +nng_err nni_sfd_dialer_alloc(nng_stream_dialer **dp, const nng_url *url) { NNI_ARG_UNUSED(dp); @@ -81,7 +81,7 @@ static void sfd_start_conn(sfd_listener *l, nni_aio *aio) { int fd; - int rv; + nng_err rv; nni_sfd_conn *c; NNI_ASSERT(l->listen_cnt > 0); fd = l->listen_q[0]; @@ -209,7 +209,7 @@ sfd_listener_set( return (nni_setopt(sfd_listener_options, name, l, buf, sz, t)); } -int +nng_err nni_sfd_listener_alloc(nng_stream_listener **lp, const nng_url *url) { sfd_listener *l; @@ -233,5 +233,5 @@ nni_sfd_listener_alloc(nng_stream_listener **lp, const nng_url *url) l->ops.sl_set = sfd_listener_set; *lp = (void *) l; - return (0); + return (NNG_OK); } -- cgit v1.2.3-70-g09d2