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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/app_while.c b/apps/app_while.c
index 90d3d5826..ca440da87 100644
--- a/apps/app_while.c
+++ b/apps/app_while.c
@@ -21,7 +21,7 @@
* \brief While Loop Implementation
*
* \author Anthony Minessale <anthmct@yahoo.com>
- *
+ *
* \ingroup applications
*/
@@ -225,13 +225,13 @@ static int _while_exec(struct ast_channel *chan, const char *data, int end)
for (x=0;;x++) {
if (get_index(chan, prefix, x)) {
used_index_i = x;
- } else
+ } else
break;
}
-
+
snprintf(used_index, VAR_SIZE, "%d", used_index_i);
snprintf(new_index, VAR_SIZE, "%d", used_index_i + 1);
-
+
if (!end)
condition = ast_strdupa(data);
@@ -239,7 +239,7 @@ static int _while_exec(struct ast_channel *chan, const char *data, int end)
my_name = ast_alloca(size);
memset(my_name, 0, size);
snprintf(my_name, size, "%s_%s_%d", ast_channel_context(chan), ast_channel_exten(chan), ast_channel_priority(chan));
-
+
ast_channel_lock(chan);
if (end) {
label = used_index;
@@ -253,7 +253,7 @@ static int _while_exec(struct ast_channel *chan, const char *data, int end)
snprintf(end_varname,VAR_SIZE,"END_%s",varname);
}
ast_channel_unlock(chan);
-
+
if ((!end && !pbx_checkcondition(condition)) || (end == 2)) {
/* Condition Met (clean up helper vars) */
@@ -338,7 +338,7 @@ static int while_continue_exec(struct ast_channel *chan, const char *data)
static int unload_module(void)
{
int res;
-
+
res = ast_unregister_application(start_app);
res |= ast_unregister_application(stop_app);
res |= ast_unregister_application(exit_app);