aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-20 20:17:38 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-20 20:17:38 +0000
commit1ff3a9b966fedf3089296cb969d1a7ebd4a74baf (patch)
treea363947207d501f978d5d2ca18ce2f0213faf44e /cdr
parent002e0c5320f84c72de495454778af417499a4847 (diff)
Never *ever* call load_module() / unload_module()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1385 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rwxr-xr-xcdr/cdr_mysql.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/cdr/cdr_mysql.c b/cdr/cdr_mysql.c
index 438527b14..a301509ff 100755
--- a/cdr/cdr_mysql.c
+++ b/cdr/cdr_mysql.c
@@ -141,7 +141,7 @@ char *description(void)
return desc;
}
-int unload_module(void)
+int my_unload_module(void)
{
if (connected) {
mysql_close(&mysql);
@@ -177,7 +177,7 @@ int unload_module(void)
return 0;
}
-int load_module(void)
+int my_load_module(void)
{
int res;
struct ast_config *cfg;
@@ -306,10 +306,20 @@ int load_module(void)
return res;
}
+int load_module(void)
+{
+ return my_load_module();
+}
+
+int unload_module(void)
+{
+ return my_unload_module();
+}
+
int reload(void)
{
- unload_module();
- return load_module();
+ my_unload_module();
+ return my_load_module();
}
int usecount(void)