Module: kamailio
Branch: master
Commit: 93606c35ffdcd55ab98c5704880a6d5375aae299
URL:
https://github.com/kamailio/kamailio/commit/93606c35ffdcd55ab98c5704880a6d5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-19T10:07:26+01:00
app_java: declare global variable in c file instead of header file
---
Modified: src/modules/app_java/app_java_mod.c
Modified: src/modules/app_java/app_java_mod.h
---
Diff:
https://github.com/kamailio/kamailio/commit/93606c35ffdcd55ab98c5704880a6d5…
Patch:
https://github.com/kamailio/kamailio/commit/93606c35ffdcd55ab98c5704880a6d5…
---
diff --git a/src/modules/app_java/app_java_mod.c b/src/modules/app_java/app_java_mod.c
index 24797a747d..935320cf86 100644
--- a/src/modules/app_java/app_java_mod.c
+++ b/src/modules/app_java/app_java_mod.c
@@ -46,6 +46,8 @@ static int child_init(int rank);
static void mod_destroy(void);
+int force_cmd_exec = 0;
+
/** module parameters */
static param_export_t params[] = {
{"class_name", PARAM_STRING, &class_name },
diff --git a/src/modules/app_java/app_java_mod.h b/src/modules/app_java/app_java_mod.h
index 65227e620d..9f40e7d0f3 100644
--- a/src/modules/app_java/app_java_mod.h
+++ b/src/modules/app_java/app_java_mod.h
@@ -22,6 +22,6 @@
#ifndef __JAVA_MOD_H__
#define __JAVA_MOD_H__
-int force_cmd_exec;
+extern int force_cmd_exec;
#endif