summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1996-05-23 06:36:34 +0000
committertg <tg@FreeBSD.org>1996-05-23 06:36:34 +0000
commite87f3f21cefe12c5677b4efa228a59177399d814 (patch)
tree83a7d9481274ba7e5858421b746f3d16ac772168 /bin/ed
parenta9f2d600900930f3f14452ca53baca63165123be (diff)
downloadFreeBSD-src-e87f3f21cefe12c5677b4efa228a59177399d814.zip
FreeBSD-src-e87f3f21cefe12c5677b4efa228a59177399d814.tar.gz
Output line count to stdout. Complies to POSIX.2.
Reviewed by: joerg
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/io.c b/bin/ed/io.c
index 1072d06..99e832a 100644
--- a/bin/ed/io.c
+++ b/bin/ed/io.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: io.c,v 1.3 1994/09/24 02:55:27 davidg Exp $
+ * $Id: io.c,v 1.4 1995/03/19 13:28:32 joerg Exp $
*/
#ifndef lint
@@ -58,7 +58,7 @@ read_file(fn, n)
sprintf(errmsg, "cannot close input file");
return ERR;
}
- fprintf(stderr, !scripted ? "%lu\n" : "", size);
+ fprintf(stdout, !scripted ? "%lu\n" : "", size);
return current_addr - n;
}
@@ -173,7 +173,7 @@ write_file(fn, mode, n, m)
sprintf(errmsg, "cannot close output file");
return ERR;
}
- fprintf(stderr, !scripted ? "%lu\n" : "", size);
+ fprintf(stdout, !scripted ? "%lu\n" : "", size);
return n ? m - n + 1 : 0;
}
OpenPOWER on IntegriCloud