From 37caaa44912ae1480334ad13d591288314fa9519 Mon Sep 17 00:00:00 2001 From: kstailey Date: Tue, 4 Feb 1997 04:51:20 +0000 Subject: [PATCH] deleted warnx() about "no drives attached" since dkinit() is used in curses apps like systat --- usr.bin/vmstat/dkstats.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)); -- 2.20.1