[asterisk-commits] trunk r24878 - in /trunk: apps/app_while.c include/asterisk/pbx.h pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 8 04:10:50 MST 2006


Author: russell
Date: Fri May  5 11:36:43 2006
New Revision: 24878

URL: http://svn.digium.com/view/asterisk?rev=24878&view=rev
Log:
constify the argument to pbx_checkcondition

Modified:
    trunk/apps/app_while.c
    trunk/include/asterisk/pbx.h
    trunk/pbx.c

Modified: trunk/apps/app_while.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_while.c?rev=24878&r1=24877&r2=24878&view=diff
==============================================================================
--- trunk/apps/app_while.c (original)
+++ trunk/apps/app_while.c Fri May  5 11:36:43 2006
@@ -277,7 +277,7 @@
 	}
 	
 
-	if ((!end && !pbx_checkcondition((char *) condition)) || (end == 2)) {
+	if ((!end && !pbx_checkcondition(condition)) || (end == 2)) {
 		/* Condition Met (clean up helper vars) */
 		const char *goto_str;
 		pbx_builtin_setvar_helper(chan, varname, NULL);

Modified: trunk/include/asterisk/pbx.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/pbx.h?rev=24878&r1=24877&r2=24878&view=diff
==============================================================================
--- trunk/include/asterisk/pbx.h (original)
+++ trunk/include/asterisk/pbx.h Fri May  5 11:36:43 2006
@@ -693,7 +693,7 @@
 int ast_pbx_outgoing_app(const char *type, int format, void *data, int timeout, const char *app, const char *appdata, int *reason, int sync, const char *cid_num, const char *cid_name, struct ast_variable *vars, const char *account, struct ast_channel **locked_channel);
 
 /* Evaluate a condition for non-falseness and return a boolean */
-int pbx_checkcondition(char *condition);
+int pbx_checkcondition(const char *condition);
 
 /* Functions for returning values from structures */
 const char *ast_get_context_name(struct ast_context *con);

Modified: trunk/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx.c?rev=24878&r1=24877&r2=24878&view=diff
==============================================================================
--- trunk/pbx.c (original)
+++ trunk/pbx.c Fri May  5 11:36:43 2006
@@ -5480,7 +5480,7 @@
 	ast_mutex_unlock(&globalslock);
 }
 
-int pbx_checkcondition(char *condition) 
+int pbx_checkcondition(const char *condition) 
 {
 	if (ast_strlen_zero(condition))	/* NULL or empty strings are false */
 		return 0;



More information about the asterisk-commits mailing list