[dev] [sbase][PATCH 4/4] ed: Don't show size of files in no diagnosistic mode

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Fri, 1 Jan 2016 11:17:03 +0100

-s flag disables such warnings.
---
 ed.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ed.c b/ed.c
index 1cf0d60..7e7fbb6 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -623,7 +623,8 @@ doread(char *fname)
 		}
 		inject(s);
 	}
-	printf("%zu\n", cnt);
+	if (optdiag)
+		printf("%zu\n", cnt);
 
 	aux = fp;
 	fp = NULL;
-- 
2.1.4
Received on Fri Jan 01 2016 - 11:17:03 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 01 2016 - 11:24:27 CET