Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/progress Drop gratuitous warning for failure to get ...



details:   https://anonhg.NetBSD.org/src/rev/b9a9f1e5e714
branches:  trunk
changeset: 542115:b9a9f1e5e714
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Wed Jan 22 04:11:34 2003 +0000

description:
Drop gratuitous warning for failure to get terminal width; it makes piping
progress' output ugly.

diffstat:

 usr.bin/progress/progress.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 284b4e026d89 -r b9a9f1e5e714 usr.bin/progress/progress.c
--- a/usr.bin/progress/progress.c       Wed Jan 22 03:40:33 2003 +0000
+++ b/usr.bin/progress/progress.c       Wed Jan 22 04:11:34 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: progress.c,v 1.3 2003/01/22 03:24:21 christos Exp $ */
+/*     $NetBSD: progress.c,v 1.4 2003/01/22 04:11:34 jhawk Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: progress.c,v 1.3 2003/01/22 03:24:21 christos Exp $");
+__RCSID("$NetBSD: progress.c,v 1.4 2003/01/22 04:11:34 jhawk Exp $");
 #endif                         /* not lint */
 
 #include <sys/types.h>
@@ -182,7 +182,6 @@
        ttyout = stdout;
 
        if (ioctl(fileno(ttyout), TIOCGSIZE, &ts) == -1) {
-               warn("could not get tty window size");
                ttywidth = 80;
        } else
                ttywidth = ts.ts_cols;



Home | Main Index | Thread Index | Old Index