[sr-dev] git:master:2c736877: app_perl: renamed the exported structure "_app_perl_exports" to avoid naming conflicts

Federico Cabiddu federico.cabiddu at gmail.com
Mon Sep 21 12:45:41 CEST 2015


Module: kamailio
Branch: master
Commit: 2c736877dc215592f3f8889ffd47e90ab68066af
URL: https://github.com/kamailio/kamailio/commit/2c736877dc215592f3f8889ffd47e90ab68066af

Author: Federico Cabiddu <federico.cabiddu at gmail.com>
Committer: Federico Cabiddu <federico.cabiddu at gmail.com>
Date: 2015-09-21T12:43:39+02:00

app_perl: renamed the exported structure "_app_perl_exports" to avoid naming conflicts

- reported by GH#333

---

Modified: modules/app_perl/app_perl_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2c736877dc215592f3f8889ffd47e90ab68066af.diff
Patch: https://github.com/kamailio/kamailio/commit/2c736877dc215592f3f8889ffd47e90ab68066af.patch

---

diff --git a/modules/app_perl/app_perl_mod.c b/modules/app_perl/app_perl_mod.c
index 3089097..0560a7c 100644
--- a/modules/app_perl/app_perl_mod.c
+++ b/modules/app_perl/app_perl_mod.c
@@ -167,7 +167,7 @@ static mi_export_t mi_cmds[] = {
 /*
  * Module interface
  */
-struct module_exports exports = {
+struct module_exports _app_perl_exports = {
 	"app_perl", 
 	RTLD_NOW | RTLD_GLOBAL,
 	cmds,       /* Exported functions */
@@ -351,7 +351,7 @@ static int mod_init(void) {
 	struct timeval t1;
 	struct timeval t2;
 
-	if(register_mi_mod(exports.name, mi_cmds)!=0)
+	if(register_mi_mod(_app_perl_exports.name, mi_cmds)!=0)
 	{
 		LM_ERR("failed to register MI commands\n");
 		return -1;




More information about the sr-dev mailing list