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/pubsub0/pub.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sp/protocol/pubsub0/pub.c') diff --git a/src/sp/protocol/pubsub0/pub.c b/src/sp/protocol/pubsub0/pub.c index 3911127a..b0a9ef07 100644 --- a/src/sp/protocol/pubsub0/pub.c +++ b/src/sp/protocol/pubsub0/pub.c @@ -64,7 +64,7 @@ pub0_sock_fini(void *arg) nni_mtx_fini(&s->mtx); } -static int +static void pub0_sock_init(void *arg, nni_sock *ns) { pub0_sock *sock = arg; @@ -74,7 +74,6 @@ pub0_sock_init(void *arg, nni_sock *ns) nni_mtx_init(&sock->mtx); NNI_LIST_INIT(&sock->pipes, pub0_pipe, node); sock->sendbuf = 16; // fairly arbitrary - return (0); } static void -- cgit v1.2.3-70-g09d2