aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_agent.c
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 /channels/chan_agent.c
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 'channels/chan_agent.c')
-rw-r--r--channels/chan_agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index 8f103ae37..cf1794ac8 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -2339,7 +2339,7 @@ static int load_module(void)
/* Make sure we can register our agent channel type */
if (ast_channel_register(&agent_tech)) {
ast_log(LOG_ERROR, "Unable to register channel class 'Agent'\n");
- return -1;
+ return AST_MODULE_LOAD_FAILURE;
}
/* Read in the config */
if (!read_agent_config(0))
@@ -2360,7 +2360,7 @@ static int load_module(void)
/* Dialplan Functions */
ast_custom_function_register(&agent_function);
- return 0;
+ return AST_MODULE_LOAD_SUCCESS;
}
static int reload(void)