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/sp | |
| parent | d137bf383892c53265593d9a5ac17e64444091c9 (diff) | |
| download | nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.tar.gz nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.tar.bz2 nng-468714a51bbc9fc6acf03479b8825ad25a2ffeb0.zip | |
SP initialization cannot fail.
Diffstat (limited to 'src/sp')
| -rw-r--r-- | src/sp/transport.c | 3 | ||||
| -rw-r--r-- | src/sp/transport.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/sp/transport.c b/src/sp/transport.c index 13961eaa..ed27ebeb 100644 --- a/src/sp/transport.c +++ b/src/sp/transport.c @@ -70,7 +70,7 @@ extern void nni_sp_wss_register(void); extern void nni_sp_zt_register(void); #endif -int +void nni_sp_tran_sys_init(void) { NNI_LIST_INIT(&sp_tran_list, nni_sp_tran, tran_link); @@ -97,7 +97,6 @@ nni_sp_tran_sys_init(void) #ifdef NNG_TRANSPORT_ZEROTIER nni_sp_zt_register(); #endif - return (0); } // nni_sp_tran_sys_fini finalizes the entire transport system, including all diff --git a/src/sp/transport.h b/src/sp/transport.h index 08f169bc..76d8d36a 100644 --- a/src/sp/transport.h +++ b/src/sp/transport.h @@ -169,7 +169,7 @@ struct nni_sp_tran { // These APIs are used by the framework internally, and not for use by // transport implementations. extern nni_sp_tran *nni_sp_tran_find(nni_url *); -extern int nni_sp_tran_sys_init(void); +extern void nni_sp_tran_sys_init(void); extern void nni_sp_tran_sys_fini(void); extern void nni_sp_tran_register(nni_sp_tran *); |
