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/app_channelredirect.c | |
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/app_channelredirect.c')
-rw-r--r-- | apps/app_channelredirect.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |