mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-20 03:26:55 +00:00
constify the argument to pbx_checkcondition
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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) */
|
/* Condition Met (clean up helper vars) */
|
||||||
const char *goto_str;
|
const char *goto_str;
|
||||||
pbx_builtin_setvar_helper(chan, varname, NULL);
|
pbx_builtin_setvar_helper(chan, varname, NULL);
|
||||||
|
@@ -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);
|
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 */
|
/* 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 */
|
/* Functions for returning values from structures */
|
||||||
const char *ast_get_context_name(struct ast_context *con);
|
const char *ast_get_context_name(struct ast_context *con);
|
||||||
|
2
pbx.c
2
pbx.c
@@ -5480,7 +5480,7 @@ void pbx_builtin_clear_globals(void)
|
|||||||
ast_mutex_unlock(&globalslock);
|
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 */
|
if (ast_strlen_zero(condition)) /* NULL or empty strings are false */
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user