From 212e24871caa85c77fcae23839476c7f086d137d Mon Sep 17 00:00:00 2001 From: nyan Date: Sat, 21 Oct 2000 10:08:57 +0000 Subject: Use kern.disks sysctl on PC-98. --- lib/libdisk/disk.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/libdisk/disk.c') 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++) { -- cgit v1.1