Skip to content
Snippets Groups Projects
Commit ab67420c authored by James Golovich's avatar James Golovich
Browse files

Fix formatting

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3825 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 07a6cd45
No related branches found
No related tags found
No related merge requests found
...@@ -425,7 +425,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char ...@@ -425,7 +425,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (pause) if (pause)
blen += strlen(pause); blen += strlen(pause);
if(blen > 2) { if (blen > 2) {
breaks = alloca(blen + 1); breaks = alloca(blen + 1);
breaks[0] = '\0'; breaks[0] = '\0';
strcat(breaks, stop); strcat(breaks, stop);
...@@ -437,13 +437,13 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char ...@@ -437,13 +437,13 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (chan) if (chan)
ast_stopstream(chan); ast_stopstream(chan);
if(file) { if (file) {
end = strchr(file,':'); end = strchr(file,':');
if(!strcasecmp(end,":end")) { if (!strcasecmp(end,":end")) {
*end = '\0'; *end = '\0';
end++; end++;
} }
} }
for (;;) { for (;;) {
gettimeofday(&started,NULL); gettimeofday(&started,NULL);
...@@ -451,7 +451,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char ...@@ -451,7 +451,7 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
ast_stopstream(chan); ast_stopstream(chan);
res = ast_streamfile(chan, file, chan->language); res = ast_streamfile(chan, file, chan->language);
if (!res) { if (!res) {
if(end) { if (end) {
ast_seekstream(chan->stream, 0, SEEK_END); ast_seekstream(chan->stream, 0, SEEK_END);
end=NULL; end=NULL;
} }
...@@ -476,9 +476,9 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char ...@@ -476,9 +476,9 @@ int ast_control_streamfile(struct ast_channel *chan, char *file, char *fwd, char
if (chan) if (chan)
ast_stopstream(chan); ast_stopstream(chan);
res = ast_waitfordigit(chan, 1000); res = ast_waitfordigit(chan, 1000);
if(res == 0) if (res == 0)
continue; continue;
else if(res == -1 || strchr(pause, res) || (stop && strchr(stop, res))) else if (res == -1 || strchr(pause, res) || (stop && strchr(stop, res)))
break; break;
} }
if (res == *pause) { if (res == *pause) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment