[hackers] [sbase] ed: Don't show size of files in no diagnosistic mode || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 1 Jan 2016 11:40:06 +0100 (CET)

commit c5e28b5fe9a0767995498b3cac24f9ac3c3bbb74
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 1 11:17:03 2016 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Fri Jan 1 10:39:59 2016 +0000

    ed: Don't show size of files in no diagnosistic mode
    
    -s flag disables such warnings.

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;
Received on Fri Jan 01 2016 - 11:40:06 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 01 2016 - 11:48:21 CET