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

Author: Federico Cabiddu <[email protected]>
Committer: Federico Cabiddu <[email protected]>
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;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to