diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/init.c | 1 | ||||
| -rw-r--r-- | src/core/transport.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/init.c b/src/core/init.c index cb242338..4a7fd974 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -9,6 +9,7 @@ // #include "core/nng_impl.h" + #include <stdio.h> #include <stdlib.h> diff --git a/src/core/transport.c b/src/core/transport.c index 2697ce74..6dcf4538 100644 --- a/src/core/transport.c +++ b/src/core/transport.c @@ -9,13 +9,13 @@ // #include "core/nng_impl.h" +#include "transport/inproc/inproc.h" #include <stdio.h> #include <string.h> // For now the list of transports is hard-wired. Adding new transports // to the system dynamically is something that might be considered later. -extern nni_tran nni_inproc_tran; extern nni_tran nni_tcp_tran; extern nni_tran nni_ipc_tran; @@ -138,7 +138,7 @@ nni_tran_sys_init(void) NNI_LIST_INIT(&nni_tran_list, nni_transport, t_node); nni_mtx_init(&nni_tran_lk); - if (((rv = nni_tran_register(&nni_inproc_tran)) != 0) || + if (((rv = nng_inproc_register()) != 0) || ((rv = nni_tran_register(&nni_ipc_tran)) != 0) || ((rv = nni_tran_register(&nni_tcp_tran)) != 0)) { nni_tran_sys_fini(); |
