diff options
Diffstat (limited to 'bin/ed/io.c')
-rw-r--r-- | bin/ed/io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ed/io.c b/bin/ed/io.c index 85ba0de..63fe10c 100644 --- a/bin/ed/io.c +++ b/bin/ed/io.c @@ -53,7 +53,8 @@ read_file(char *fn, long n) errmsg = "cannot close input file"; return ERR; } - fprintf(stdout, !scripted ? "%lu\n" : "", size); + if (!scripted) + fprintf(stdout, "%lu\n", size); return current_addr - n; } @@ -161,7 +162,8 @@ write_file(char *fn, const char *mode, long n, long m) errmsg = "cannot close output file"; return ERR; } - fprintf(stdout, !scripted ? "%lu\n" : "", size); + if (!scripted) + fprintf(stdout, "%lu\n", size); return n ? m - n + 1 : 0; } |