]> git.cameronkatri.com Git - bsd-progress.git/commitdiff
Drop gratuitous warning for failure to get terminal width; it makes piping
authorjhawk <jhawk@NetBSD.org>
Wed, 22 Jan 2003 04:11:34 +0000 (04:11 +0000)
committerjhawk <jhawk@NetBSD.org>
Wed, 22 Jan 2003 04:11:34 +0000 (04:11 +0000)
progress' output ugly.

progress.c

index 23c075b98b063b3e2a3e1807b2f797eab57585ee..05c8fdb999e10c80be5b4ede31dc4120cd1f28f3 100644 (file)
@@ -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.
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
 
 #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>
 #endif                         /* not lint */
 
 #include <sys/types.h>
@@ -182,7 +182,6 @@ main(int argc, char *argv[])
        ttyout = stdout;
 
        if (ioctl(fileno(ttyout), TIOCGSIZE, &ts) == -1) {
        ttyout = stdout;
 
        if (ioctl(fileno(ttyout), TIOCGSIZE, &ts) == -1) {
-               warn("could not get tty window size");
                ttywidth = 80;
        } else
                ttywidth = ts.ts_cols;
                ttywidth = 80;
        } else
                ttywidth = ts.ts_cols;