Fix issue with global load_module symbol... hint: NEVER call "load_module();"
authorMark Spencer <markster@digium.com>
Thu, 7 Apr 2005 14:53:17 +0000 (14:53 +0000)
committerMark Spencer <markster@digium.com>
Thu, 7 Apr 2005 14:53:17 +0000 (14:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5434 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_tds.c

index c70e62e..69866a3 100755 (executable)
@@ -482,7 +482,7 @@ connect_fail:
        return -1;
 }
 
-int unload_module(void)
+static int tds_unload_module(void)
 {
        mssql_disconnect();
 
@@ -498,7 +498,7 @@ int unload_module(void)
        return 0;
 }
 
-int load_module(void)
+static int tds_load_module(void)
 {
        int res = 0;
        struct ast_config *cfg;
@@ -570,8 +570,18 @@ int load_module(void)
 
 int reload(void)
 {
-       unload_module();
-       return load_module();
+       tds_unload_module();
+       return tds_load_module();
+}
+
+int load_module(void)
+{
+       return tds_load_module();
+}
+
+int unload_module(void)
+{
+       return tds_unload_module();
 }
 
 int usecount(void)