[asterisk-commits] russell: trunk r120129 - /trunk/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 3 14:48:38 CDT 2008


Author: russell
Date: Tue Jun  3 14:48:37 2008
New Revision: 120129

URL: http://svn.digium.com/view/asterisk?view=rev&rev=120129
Log:
Use proper return values for a few application modules

Modified:
    trunk/apps/app_chanisavail.c
    trunk/apps/app_channelredirect.c
    trunk/apps/app_disa.c

Modified: trunk/apps/app_chanisavail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_chanisavail.c?view=diff&rev=120129&r1=120128&r2=120129
==============================================================================
--- trunk/apps/app_chanisavail.c (original)
+++ trunk/apps/app_chanisavail.c Tue Jun  3 14:48:37 2008
@@ -165,7 +165,8 @@
 
 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");

Modified: trunk/apps/app_channelredirect.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_channelredirect.c?view=diff&rev=120129&r1=120128&r2=120129
==============================================================================
--- trunk/apps/app_channelredirect.c (original)
+++ trunk/apps/app_channelredirect.c Tue Jun  3 14:48:37 2008
@@ -89,7 +89,8 @@
 
 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");

Modified: trunk/apps/app_disa.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_disa.c?view=diff&rev=120129&r1=120128&r2=120129
==============================================================================
--- trunk/apps/app_disa.c (original)
+++ trunk/apps/app_disa.c Tue Jun  3 14:48:37 2008
@@ -363,7 +363,8 @@
 
 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");




More information about the asterisk-commits mailing list