diff options
author | jhawk <jhawk@NetBSD.org> | 2003-01-22 04:11:34 +0000 |
---|---|---|
committer | jhawk <jhawk@NetBSD.org> | 2003-01-22 04:11:34 +0000 |
commit | dc44b4eec2f1d674c9c67c09e54a0fa683676ec9 (patch) | |
tree | 21863d2d2a91cc7438e1e55237b10da2bec8afc7 | |
parent | 504d57527b28d3497ec47bf3edf35efd8a74b8d7 (diff) | |
download | bsd-progress-dc44b4eec2f1d674c9c67c09e54a0fa683676ec9.tar.gz bsd-progress-dc44b4eec2f1d674c9c67c09e54a0fa683676ec9.tar.zst bsd-progress-dc44b4eec2f1d674c9c67c09e54a0fa683676ec9.zip |
Drop gratuitous warning for failure to get terminal width; it makes piping
progress' output ugly.
-rw-r--r-- | progress.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 @@ 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; |