summaryrefslogtreecommitdiff
path: root/apps/app_while.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_while.c')
-rw-r--r--apps/app_while.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_while.c b/apps/app_while.c
index 36dd17c5f..822458663 100644
--- a/apps/app_while.c
+++ b/apps/app_while.c
@@ -60,10 +60,10 @@ static char *continue_synopsis = "Restart a While loop";
#define VAR_SIZE 64
-static const char *get_index(struct ast_channel *chan, const char *prefix, int index) {
+static const char *get_index(struct ast_channel *chan, const char *prefix, int idx) {
char varname[VAR_SIZE];
- snprintf(varname, VAR_SIZE, "%s_%d", prefix, index);
+ snprintf(varname, VAR_SIZE, "%s_%d", prefix, idx);
return pbx_builtin_getvar_helper(chan, varname);
}