summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-09-23 16:02:10 +0000
committerJames Golovich <james@gnuinter.net>2004-09-23 16:02:10 +0000
commitab67420c377862d2ac20242cc0c18f6f4c86ad07 (patch)
treeb4ed1f4740ae895b2c3404dba58d48579def6631 /app.c
parent07a6cd45929fc8364a6a5e0bda2f262fb3d6e89d (diff)
Fix formatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/app.c b/app.c
index fe6af0201..d602de058 100755
--- a/app.c
+++ b/app.c
@@ -425,7 +425,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (pause)
blen += strlen(pause);
- if(blen > 2) {
+ if (blen > 2) {
breaks = alloca(blen + 1);
breaks[0] = '\0';
strcat(breaks, stop);
@@ -437,13 +437,13 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (chan)
ast_stopstream(chan);
- if(file) {
- end = strchr(file,':');
- if(!strcasecmp(end,":end")) {
- *end = '\0';
- end++;
- }
- }
+ if (file) {
+ end = strchr(file,':');
+ if (!strcasecmp(end,":end")) {
+ *end = '\0';
+ end++;
+ }
+ }
for (;;) {
gettimeofday(&started,NULL);
@@ -451,7 +451,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
ast_stopstream(chan);
res = ast_streamfile(chan, file, chan->language);
if (!res) {
- if(end) {
+ if (end) {
ast_seekstream(chan->stream, 0, SEEK_END);
end=NULL;
}
@@ -476,9 +476,9 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (chan)
ast_stopstream(chan);
res = ast_waitfordigit(chan, 1000);
- if(res == 0)
+ if (res == 0)
continue;
- else if(res == -1 || strchr(pause, res) || (stop && strchr(stop, res)))
+ else if (res == -1 || strchr(pause, res) || (stop && strchr(stop, res)))
break;
}
if (res == *pause) {