From e30bdf6ba17a82a08db485c3ad3334a77749018b Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Sat, 21 Oct 2000 10:08:57 +0000 Subject: [PATCH] Use kern.disks sysctl on PC-98. --- lib/libdisk/disk.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index 0d77f38a4f84..6620c17c44fc 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++) {