aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-26 21:37:02 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-26 21:37:02 +0000
commitecd7ce6f4958a5f52e535fe873afd0cea9c4cb89 (patch)
treeb1108458720e17b700db0be4395b0272be1d3f92 /res
parent15b76d347eae9ee3ad3a6664608796608d677013 (diff)
Correctly use defined return values in (some) load_module functions.
(issue #11096) Patches: chan_agent.c.patch uploaded by eliel (license 64) chan_local.c.patch uploaded by eliel (license 64) chan_features.c.patch uploaded by eliel (license 64) chan_zap.c.patch uploaded by eliel (license 64) res_monitor.c.patch uploaded by eliel (license 64) res_realtime.c.patch uploaded by eliel (license 64) res_crypto.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87202 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_crypto.c2
-rw-r--r--res/res_monitor.c2
-rw-r--r--res/res_realtime.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c
index 9ef65d652..17b7789c3 100644
--- a/res/res_crypto.c
+++ b/res/res_crypto.c
@@ -617,7 +617,7 @@ static int load_module(void)
crypto_load(STDIN_FILENO, STDOUT_FILENO);
else
crypto_load(-1, -1);
- return 0;
+ return AST_MODULE_LOAD_SUCCESS;
}
static int unload_module(void)
diff --git a/res/res_monitor.c b/res/res_monitor.c
index e34b89a40..048bcf156 100644
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -722,7 +722,7 @@ static int load_module(void)
ast_manager_register2("PauseMonitor", EVENT_FLAG_CALL, pause_monitor_action, pausemonitor_synopsis, pause_monitor_action_help);
ast_manager_register2("UnpauseMonitor", EVENT_FLAG_CALL, unpause_monitor_action, unpausemonitor_synopsis, unpause_monitor_action_help);
- return 0;
+ return AST_MODULE_LOAD_SUCCESS;
}
static int unload_module(void)
diff --git a/res/res_realtime.c b/res/res_realtime.c
index 8f96c8f54..49f49c5eb 100644
--- a/res/res_realtime.c
+++ b/res/res_realtime.c
@@ -130,7 +130,7 @@ static int unload_module(void)
static int load_module(void)
{
ast_cli_register_multiple(cli_realtime, sizeof(cli_realtime) / sizeof(struct ast_cli_entry));
- return 0;
+ return AST_MODULE_LOAD_SUCCESS;
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Realtime Data Lookup/Rewrite");