From 045641ce82ba6150c72a3a25f967fea9a9e551f1 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 21 Jan 2020 14:54:07 +0100 Subject: [PATCH] corex: declare nio specific globals in c file (cherry picked from commit 512f89bec0b6ebd2b3c7c16b115f15dbd6de9a39) --- src/modules/corex/corex_nio.c | 8 ++++++++ src/modules/corex/corex_nio.h | 12 ++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/modules/corex/corex_nio.c b/src/modules/corex/corex_nio.c index 6b79fcc648a..2e5cdff449c 100644 --- a/src/modules/corex/corex_nio.c +++ b/src/modules/corex/corex_nio.c @@ -18,6 +18,14 @@ #include "corex_nio.h" +int nio_route_no; +int nio_min_msg_len; +int nio_is_incoming; + +str nio_msg_avp_param; +int_str nio_msg_avp_name; +unsigned short nio_msg_avp_type; + /** * init nio function */ diff --git a/src/modules/corex/corex_nio.h b/src/modules/corex/corex_nio.h index ec0bbc5ae9a..008fcdd7de6 100644 --- a/src/modules/corex/corex_nio.h +++ b/src/modules/corex/corex_nio.h @@ -32,13 +32,13 @@ #include "../../core/tcp_options.h" #include "../../core/msg_translator.h" -int nio_route_no; -int nio_min_msg_len; -int nio_is_incoming; +extern int nio_route_no; +extern int nio_min_msg_len; +extern int nio_is_incoming; -str nio_msg_avp_param; -int_str nio_msg_avp_name; -unsigned short nio_msg_avp_type; +extern str nio_msg_avp_param; +extern int_str nio_msg_avp_name; +extern unsigned short nio_msg_avp_type; int nio_msg_received(sr_event_param_t *evp); int nio_msg_sent(sr_event_param_t *evp);