[Asterisk-cvs] asterisk app.c,1.28,1.29

citats at lists.digium.com citats at lists.digium.com
Thu Sep 23 11:58:43 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk

Modified Files:
	app.c 
Log Message:
Fix formatting

Index: app.c
===================================================================
RCS file: /usr/cvsroot/asterisk/app.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- app.c	23 Sep 2004 15:26:01 -0000	1.28
+++ app.c	23 Sep 2004 16:02:10 -0000	1.29
@@ -425,7 +425,7 @@
 	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 @@
 	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 @@
 			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 @@
 				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) {




More information about the svn-commits mailing list