From: jhawk Date: Wed, 22 Jan 2003 04:11:34 +0000 (+0000) Subject: Drop gratuitous warning for failure to get terminal width; it makes piping X-Git-Url: https://git.cameronkatri.com/bsd-progress.git/commitdiff_plain/dc44b4eec2f1d674c9c67c09e54a0fa683676ec9?ds=sidebyside Drop gratuitous warning for failure to get terminal width; it makes piping progress' output ugly. --- diff --git a/progress.c b/progress.c index 23c075b..05c8fdb 100644 --- a/progress.c +++ b/progress.c @@ -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 #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 @@ -182,7 +182,6 @@ main(int argc, char *argv[]) ttyout = stdout; if (ioctl(fileno(ttyout), TIOCGSIZE, &ts) == -1) { - warn("could not get tty window size"); ttywidth = 80; } else ttywidth = ts.ts_cols;