if (pause)
blen += strlen(pause);
- if(blen > 2) {
+ if (blen > 2) {
breaks = alloca(blen + 1);
breaks[0] = '\0';
strcat(breaks, stop);
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);
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;
}
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) {