[svn-commits] tilghman: branch tilghman/issue16461 r272086 - /team/tilghman/issue16461/funcs/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jun 23 00:15:36 CDT 2010


Author: tilghman
Date: Wed Jun 23 00:15:32 2010
New Revision: 272086

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=272086
Log:
Ugly red spots

Modified:
    team/tilghman/issue16461/funcs/func_env.c

Modified: team/tilghman/issue16461/funcs/func_env.c
URL: http://svnview.digium.com/svn/asterisk/team/tilghman/issue16461/funcs/func_env.c?view=diff&rev=272086&r1=272085&r2=272086
==============================================================================
--- team/tilghman/issue16461/funcs/func_env.c (original)
+++ team/tilghman/issue16461/funcs/func_env.c Wed Jun 23 00:15:32 2010
@@ -487,7 +487,7 @@
 		/* Character-based mode */
 		off_t off_i;
 
-	   	if (!(ff = fopen(args.filename, "r"))) {
+		if (!(ff = fopen(args.filename, "r"))) {
 			ast_log(LOG_WARNING, "Cannot open file '%s' for reading: %s\n", args.filename, strerror(errno));
 			return 0;
 		}
@@ -733,8 +733,8 @@
 		if (args.argc > 3 && strchr(args.options, 'a')) {
 			/* Append mode */
 			if (!(ff = fopen(args.filename, "a"))) {
-    			ast_log(LOG_WARNING, "Cannot open file '%s' for appending: %s\n", args.filename, strerror(errno));
-    			return 0;
+				ast_log(LOG_WARNING, "Cannot open file '%s' for appending: %s\n", args.filename, strerror(errno));
+				return 0;
 			}
 			if (fwrite(value, 1, vlength, ff) < vlength) {
 				ast_log(LOG_ERROR, "Short write?!!\n");
@@ -743,19 +743,19 @@
 			return 0;
 		} else if (offset == 0 && length == LLONG_MAX) {
 			if (!(ff = fopen(args.filename, "w"))) {
-		   		ast_log(LOG_WARNING, "Cannot open file '%s' for writing: %s\n", args.filename, strerror(errno));
-		   		return 0;
-		   	}
+				ast_log(LOG_WARNING, "Cannot open file '%s' for writing: %s\n", args.filename, strerror(errno));
+				return 0;
+			}
 			if (fwrite(value, 1, vlength, ff) < vlength) {
 				ast_log(LOG_ERROR, "Short write?!!\n");
 			}
-    		fclose(ff);
-		   	return 0;
+			fclose(ff);
+			return 0;
 		}
 
 		if (!(ff = fopen(args.filename, "r+"))) {
-    		ast_log(LOG_WARNING, "Cannot open file '%s' for modification: %s\n", args.filename, strerror(errno));
-    		return 0;
+			ast_log(LOG_WARNING, "Cannot open file '%s' for modification: %s\n", args.filename, strerror(errno));
+			return 0;
 		}
 		fseeko(ff, 0, SEEK_END);
 		flength = ftello(ff);




More information about the svn-commits mailing list