mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@87202 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user