diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-09-06 12:01:26 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-09-06 12:01:26 -0700 |
| commit | 468714a51bbc9fc6acf03479b8825ad25a2ffeb0 (patch) | |
| tree | 4a6c7b186b29b6ec1c576530e3b6854d58c305c2 /src/core/socket.c | |
| parent | d137bf383892c53265593d9a5ac17e64444091c9 (diff) | |
| download | nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.tar.gz nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.tar.bz2 nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.zip | |
SP initialization cannot fail.
Diffstat (limited to 'src/core/socket.c')
| -rw-r--r-- | src/core/socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index e8b1211f..e376b773 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -608,7 +608,7 @@ nni_sock_create(nni_sock **sp, const nni_proto *proto) return (rv); } -int +void nni_sock_sys_init(void) { NNI_LIST_INIT(&sock_list, nni_sock, s_node); @@ -617,7 +617,6 @@ nni_sock_sys_init(void) nni_id_map_init(&sock_ids, 1, 0x7fffffff, false); nni_id_map_init(&ctx_ids, 1, 0x7fffffff, false); inited = true; - return (0); } void |
