[asterisk-commits] mmichelson: branch group/CCSS r226752 - in /team/group/CCSS: include/asterisk...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 2 10:03:00 CST 2009


Author: mmichelson
Date: Mon Nov  2 10:02:56 2009
New Revision: 226752

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=226752
Log:
Get the ball rolling on a new week with a simple change.

Change ast_cc_request_within_limits to ast_cc_request_is_within_limits
so that the name is more self-documenting. 


Modified:
    team/group/CCSS/include/asterisk/ccss.h
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/include/asterisk/ccss.h
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/include/asterisk/ccss.h?view=diff&rev=226752&r1=226751&r2=226752
==============================================================================
--- team/group/CCSS/include/asterisk/ccss.h (original)
+++ team/group/CCSS/include/asterisk/ccss.h Mon Nov  2 10:02:56 2009
@@ -635,7 +635,7 @@
  * \retval 0 Not within the limits. Fail.
  * \retval non-zero Within the limits. Success.
  */
-int ast_cc_request_within_limits(void);
+int ast_cc_request_is_within_limits(void);
 
 /*!
  * \since 1.6.4

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=226752&r1=226751&r2=226752
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Mon Nov  2 10:02:56 2009
@@ -1475,7 +1475,7 @@
 	 * the time the requestor will have made his request. This may be
 	 * deleted at some point.
 	 */
-	if (!ast_cc_request_within_limits()) {
+	if (!ast_cc_request_is_within_limits()) {
 		return 0;
 	}
 
@@ -1732,7 +1732,7 @@
 	return 0;
 }
 
-int ast_cc_request_within_limits(void)
+int ast_cc_request_is_within_limits(void)
 {
 	return cc_request_count < global_cc_max_requests;
 }
@@ -2444,7 +2444,7 @@
 
 static int cc_caller_requested(struct cc_core_instance *core_instance, struct cc_state_change_args *args, enum cc_state previous_state)
 {
-	if (!ast_cc_request_within_limits()) {
+	if (!ast_cc_request_is_within_limits()) {
 		ast_log(LOG_WARNING, "Cannot request CC since there is no more room for requests\n");
 		ast_cc_failed(core_instance->core_id, "Too many requests in the system");
 		return -1;
@@ -2741,7 +2741,7 @@
 		return -1;
 	}
 
-	if (!ast_cc_request_within_limits()) {
+	if (!ast_cc_request_is_within_limits()) {
 		ast_log_dynamic_level(cc_logger_level, "CallCompletionRequest failed. Too many requests in the system\n");
 		ast_cc_failed(core_instance->core_id, "Too many CC requests\n");
 		return -1;




More information about the asterisk-commits mailing list