summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/fdisk/disk.c4
-rw-r--r--sys/arch/i386/stand/installboot/installboot.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/fdisk/disk.c b/sbin/fdisk/disk.c
index afa46c26492..59c77494d7d 100644
--- a/sbin/fdisk/disk.c
+++ b/sbin/fdisk/disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disk.c,v 1.8 1997/10/26 00:47:05 deraadt Exp $ */
+/* $OpenBSD: disk.c,v 1.9 1997/10/28 10:06:32 deraadt Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -139,7 +139,7 @@ DISK_getbiosmetrics(name)
warn("sysctl(machdep.chr2blk)");
return (NULL);
}
- devno = MAKEBOOTDEV(major(devno), 0, 0, DISKUNIT(devno), 0);
+ devno = MAKEBOOTDEV(major(devno), 0, 0, DISKUNIT(devno), RAW_PART);
mib[0] = CTL_MACHDEP;
mib[1] = CPU_BIOS;
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c
index 9d46a2128b3..6ae7d4667c8 100644
--- a/sys/arch/i386/stand/installboot/installboot.c
+++ b/sys/arch/i386/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.25 1997/10/26 02:41:19 mickey Exp $ */
+/* $OpenBSD: installboot.c,v 1.26 1997/10/28 10:06:34 deraadt Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -188,8 +188,8 @@ main(argc, argv)
mib[2] = sb.st_rdev;
size = sizeof(devno);
if(sysctl(mib, 3, &devno, &size, NULL, 0) >= 0) {
- devno = MAKEBOOTDEV(major(devno),0,0,DISKUNIT(devno),0);
-
+ devno = MAKEBOOTDEV(major(devno), 0, 0,
+ DISKUNIT(devno), RAW_PART);
mib[0] = CTL_MACHDEP;
mib[1] = CPU_BIOS;
mib[2] = BIOS_DISKINFO;