aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-09-06 12:01:26 -0700
committerGarrett D'Amore <garrett@damore.org>2021-09-06 12:01:26 -0700
commit468714a51bbc9fc6acf03479b8825ad25a2ffeb0 (patch)
tree4a6c7b186b29b6ec1c576530e3b6854d58c305c2 /src/core/pipe.c
parentd137bf383892c53265593d9a5ac17e64444091c9 (diff)
downloadnng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.tar.gz
nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.tar.bz2
nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.zip
SP initialization cannot fail.
Diffstat (limited to 'src/core/pipe.c')
-rw-r--r--src/core/pipe.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c
index a2b6411f..47a78f35 100644
--- a/src/core/pipe.c
+++ b/src/core/pipe.c
@@ -1,5 +1,5 @@
//
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
// Copyright 2018 Capitar IT Group BV <info@capitar.com>
// Copyright 2018 Devolutions <info@devolutions.net>
//
@@ -29,7 +29,7 @@ static nni_reap_list pipe_reap_list = {
.rl_func = pipe_destroy,
};
-int
+void
nni_pipe_sys_init(void)
{
nni_mtx_init(&pipes_lk);
@@ -37,8 +37,6 @@ nni_pipe_sys_init(void)
// Pipe IDs needs to have high order bit clear, and we want
// them to start at a random value.
nni_id_map_init(&pipes, 1, 0x7fffffff, true);
-
- return (0);
}
void