[svn-commits] oej: trunk r286342 - in /trunk/main: app.c say.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Sep 11 12:35:19 CDT 2010


Author: oej
Date: Sat Sep 11 12:35:15 2010
New Revision: 286342

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=286342
Log:
Whitespace cleanup

Modified:
    trunk/main/app.c
    trunk/main/say.c

Modified: trunk/main/app.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/app.c?view=diff&rev=286342&r1=286341&r2=286342
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Sat Sep 11 12:35:15 2010
@@ -914,8 +914,9 @@
 			totalsilence += dspsilence;
 		}
 
-        	if (totalsilence > 0)
+		if (totalsilence > 0) {
 			*duration -= (totalsilence - 200) / 1000;
+		}
 		if (*duration < 0) {
 			*duration = 0;
 		}
@@ -929,7 +930,7 @@
 			 * to trim ANY part of the recording.
 			 */
 			if (res > 0 && dspsilence) {
-                                /* rewind only the trailing silence */
+				/* rewind only the trailing silence */
 				ast_stream_rewind(others[x], dspsilence - 200);
 			}
 			ast_truncstream(others[x]);

Modified: trunk/main/say.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/say.c?view=diff&rev=286342&r1=286341&r2=286342
==============================================================================
--- trunk/main/say.c (original)
+++ trunk/main/say.c Sat Sep 11 12:35:15 2010
@@ -3725,7 +3725,7 @@
 			case 'Y':
 				/* Year */
 				if (tm.tm_year > 99) {
-				        res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
+					res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
 				} else if (tm.tm_year < 1) {
 					/* I'm not going to handle 1900 and prior */
 					/* We'll just be silent on the year, instead of bombing out. */
@@ -4559,13 +4559,13 @@
 				break;
 			case 'd':
 			case 'e': /* Day of the month */
-                                /* I'm not sure exactly what the parameters 
-                                 * audiofd and ctrlfd to 
-                                 * ast_say_number_full_he mean, but it seems
-                                 * safe to pass -1 there. 
-                                 *
-                                 * At least in one of the pathes :-( 
-                                 */
+				/* I'm not sure exactly what the parameters 
+ 				* audiofd and ctrlfd to 
+ 				* ast_say_number_full_he mean, but it seems
+ 				* safe to pass -1 there. 
+ 				*
+ 				* At least in one of the pathes :-( 
+ 				*/
 				res = ast_say_number_full_he(chan, tm.tm_mday, ints, lang, "m", -1, -1);
 				break;
 			case 'Y': /* Year */
@@ -5225,7 +5225,7 @@
 				break;
 			case 'R':
 				res = ast_say_date_with_format_it(chan, t, ints, lang, "HM", tzone);
-	        	break;
+				break;
 			case 'S':
 				/* Seconds */
 				if (tm.tm_sec == 0) {
@@ -5254,7 +5254,7 @@
 						}
 					}
 				}
-		        break;
+				break;
 			case 'T':
 				res = ast_say_date_with_format_it(chan, t, ints, lang, "HMS", tzone);
 				break;
@@ -7703,7 +7703,7 @@
 			case 'Y':
 				/* Year */
 				if (tm.tm_year > 99) {
-				        res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
+					res = ast_say_number(chan, tm.tm_year + 1900, ints, lang, (char *) NULL);
 				} else if (tm.tm_year < 1) {
 					/* I'm not going to handle 1900 and prior */
 					/* We'll just be silent on the year, instead of bombing out. */
@@ -8263,7 +8263,7 @@
  */
 static const char *counted_noun_ending_slavic(int num)
 {
-    	if (num < 0) {
+	if (num < 0) {
 	    num *= -1;
 	}
 	num %= 100;			/* never pay attention to more than two digits */




More information about the svn-commits mailing list