From: kstailey Date: Tue, 4 Feb 1997 04:51:20 +0000 (+0000) Subject: deleted warnx() about "no drives attached" since dkinit() is used in curses apps... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=37caaa44912ae1480334ad13d591288314fa9519;p=openbsd deleted warnx() about "no drives attached" since dkinit() is used in curses apps like systat --- diff --git a/usr.bin/vmstat/dkstats.c b/usr.bin/vmstat/dkstats.c index d8a84f4f564..d1329dc76a6 100644 --- a/usr.bin/vmstat/dkstats.c +++ b/usr.bin/vmstat/dkstats.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dkstats.c,v 1.3 1996/06/26 05:42:40 deraadt Exp $ */ +/* $OpenBSD: dkstats.c,v 1.4 1997/02/04 04:51:20 kstailey Exp $ */ /* $NetBSD: dkstats.c,v 1.1 1996/05/10 23:19:27 thorpej Exp $ */ /* @@ -199,9 +199,6 @@ int select; if (dk_ndrive < 0) errx(1, "invalid _disk_count %d.", dk_ndrive); - else if (dk_ndrive == 0) { - warnx("No drives attached."); - } else { /* Get a pointer to the first disk. */ deref_nl(X_DISKLIST, &disk_head, sizeof(disk_head));