diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-04-27 22:09:42 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-04-27 22:17:22 -0700 |
| commit | 70ae513e4dda50864f7d45b6676549ed5246144d (patch) | |
| tree | 4b3af5df7d7aeb2301c31717d9f625e2b0a8ff86 /src/sp/transport/udp | |
| parent | e6848652f9684f044543a3ddf24dab806e34bc7c (diff) | |
| download | nng-70ae513e4dda50864f7d45b6676549ed5246144d.tar.gz nng-70ae513e4dda50864f7d45b6676549ed5246144d.tar.bz2 nng-70ae513e4dda50864f7d45b6676549ed5246144d.zip | |
Transport listen: use nng_err
Diffstat (limited to 'src/sp/transport/udp')
| -rw-r--r-- | src/sp/transport/udp/udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp/transport/udp/udp.c b/src/sp/transport/udp/udp.c index 2e85fd0f..43fbabe1 100644 --- a/src/sp/transport/udp/udp.c +++ b/src/sp/transport/udp/udp.c @@ -1709,11 +1709,11 @@ udp_ep_start(udp_ep *ep) udp_start_rx(ep); } -static int +static nng_err udp_ep_bind(void *arg, nng_url *url) { udp_ep *ep = arg; - int rv; + nng_err rv; nni_mtx_lock(&ep->mtx); if (ep->started) { @@ -1722,7 +1722,7 @@ udp_ep_bind(void *arg, nng_url *url) } rv = nni_udp_open(&ep->udp, &ep->self_sa); - if (rv != 0) { + if (rv != NNG_OK) { nni_mtx_unlock(&ep->mtx); return (rv); } |
