From 7b02ddc2d7077439992a10bb69553f89b5ee5903 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 25 Dec 2021 18:01:49 -0800 Subject: Socket and context initialization never fails. This makes these functions entirely bullet proof, and eliminates yet more error handling cases. --- src/sp/protocol/reqrep0/xrep.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/sp/protocol/reqrep0/xrep.c') diff --git a/src/sp/protocol/reqrep0/xrep.c b/src/sp/protocol/reqrep0/xrep.c index 9737c600..9241dccd 100644 --- a/src/sp/protocol/reqrep0/xrep.c +++ b/src/sp/protocol/reqrep0/xrep.c @@ -1,5 +1,5 @@ // -// Copyright 2020 Staysail Systems, Inc. +// Copyright 2021 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -58,7 +58,7 @@ xrep0_sock_fini(void *arg) nni_mtx_fini(&s->lk); } -static int +static void xrep0_sock_init(void *arg, nni_sock *sock) { xrep0_sock *s = arg; @@ -71,7 +71,6 @@ xrep0_sock_init(void *arg, nni_sock *sock) s->urq = nni_sock_recvq(sock); nni_id_map_init(&s->pipes, 0, 0, false); - return (0); } static void -- cgit v1.2.3-70-g09d2