Return to dkstats.c CVS log | Up to [local] / src / usr.bin / vmstat |
version 1.3, 1996/06/26 05:42:40 | version 1.4, 1997/02/04 04:51:20 | ||
---|---|---|---|
|
|
||
if (dk_ndrive < 0) | if (dk_ndrive < 0) | ||
errx(1, "invalid _disk_count %d.", dk_ndrive); | errx(1, "invalid _disk_count %d.", dk_ndrive); | ||
else if (dk_ndrive == 0) { | |||
warnx("No drives attached."); | |||
} | |||
else { | else { | ||
/* Get a pointer to the first disk. */ | /* Get a pointer to the first disk. */ | ||
deref_nl(X_DISKLIST, &disk_head, sizeof(disk_head)); | deref_nl(X_DISKLIST, &disk_head, sizeof(disk_head)); |