summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-05-05 16:36:43 +0000
committerRussell Bryant <russell@russellbryant.com>2006-05-05 16:36:43 +0000
commit816a7cf13bb2f9a715a2129478a570422e8d8843 (patch)
tree4e862deb71b9c0d447f37e62175fd6705e9e6ffe
parent53d09cbaf749288f46882ec0cbf5e4196ef2ce15 (diff)
constify the argument to pbx_checkcondition
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--apps/app_while.c2
-rw-r--r--include/asterisk/pbx.h2
-rw-r--r--pbx.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_while.c b/apps/app_while.c
index ea0fd4986..88996b92a 100644
--- a/apps/app_while.c
+++ b/apps/app_while.c
@@ -277,7 +277,7 @@ static int _while_exec(struct ast_channel *chan, void *data, int end)
}
- 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);
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index c165f70c0..1765aeb4b 100644
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -693,7 +693,7 @@ int ast_pbx_outgoing_exten(const char *type, int format, void *data, int timeout
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);
diff --git a/pbx.c b/pbx.c
index e7a7263b4..a2fd93d05 100644
--- a/pbx.c
+++ b/pbx.c
@@ -5480,7 +5480,7 @@ void pbx_builtin_clear_globals(void)
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;