diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-06-03 19:48:37 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-06-03 19:48:37 +0000 |
commit | 3f47cf61011762f897c994831de22f9d89de8101 (patch) | |
tree | f42c26da3942cf9472cc0df695d7b39050b72a53 /apps | |
parent | 85dfb6348b84a6e81017b4f7d90014b6e18b0ccf (diff) |
Use proper return values for a few application modules
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@120129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_chanisavail.c | 3 | ||||
-rw-r--r-- | apps/app_channelredirect.c | 3 | ||||
-rw-r--r-- | apps/app_disa.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c index 4504d4964..6a9cd8128 100644 --- a/apps/app_chanisavail.c +++ b/apps/app_chanisavail.c @@ -165,7 +165,8 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, chanavail_exec, synopsis, descrip); + return ast_register_application(app, chanavail_exec, synopsis, descrip) ? + AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS; } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Check channel availability"); diff --git a/apps/app_channelredirect.c b/apps/app_channelredirect.c index ed7f2e43e..610f254df 100644 --- a/apps/app_channelredirect.c +++ b/apps/app_channelredirect.c @@ -89,7 +89,8 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, asyncgoto_exec, synopsis, descrip); + return ast_register_application(app, asyncgoto_exec, synopsis, descrip) ? + AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS; } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Redirects a given channel to a dialplan target"); diff --git a/apps/app_disa.c b/apps/app_disa.c index b624a426a..3ff110053 100644 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -363,7 +363,8 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, disa_exec, synopsis, descrip); + return ast_register_application(app, disa_exec, synopsis, descrip) ? + AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS; } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "DISA (Direct Inward System Access) Application"); |