summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/disk.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2000-10-21 10:08:57 +0000
committernyan <nyan@FreeBSD.org>2000-10-21 10:08:57 +0000
commit212e24871caa85c77fcae23839476c7f086d137d (patch)
tree32317abb97971de68b128f462f65104c2a3165ce /lib/libdisk/disk.c
parent09a7099efb2a4231c77c6f9abcd59b968962049c (diff)
downloadFreeBSD-src-212e24871caa85c77fcae23839476c7f086d137d.zip
FreeBSD-src-212e24871caa85c77fcae23839476c7f086d137d.tar.gz
Use kern.disks sysctl on PC-98.
Diffstat (limited to 'lib/libdisk/disk.c')
-rw-r--r--lib/libdisk/disk.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index 0d77f38..6620c17 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -478,15 +478,12 @@ Disk_Names()
struct diskslices ds;
int fd;
static char **disks;
-#ifndef PC98
int error;
size_t listsize;
char *disklist, **dp;
-#endif
disks = malloc(sizeof *disks * (1 + MAX_NO_DISKS));
memset(disks,0,sizeof *disks * (1 + MAX_NO_DISKS));
-#ifndef PC98
error = sysctlbyname("kern.disks", NULL, &listsize, NULL, 0);
if (!error) {
disklist = (char *)malloc(listsize);
@@ -498,7 +495,6 @@ Disk_Names()
return disks;
}
warn("kern.disks sysctl not available");
-#endif
k = 0;
for (j = 0; device_list[j]; j++) {
for (i = 0; i < MAX_NO_DISKS; i++) {
OpenPOWER on IntegriCloud