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
This commit is contained in:
Russell Bryant
2008-06-03 19:48:37 +00:00
parent 85dfb6348b
commit 3f47cf6101
3 changed files with 6 additions and 3 deletions

View File

@@ -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");