summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-28 10:06:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-10-28 10:06:35 +0000
commit9c3b78145c26ad6c3331133caeae47f4e1cabf5e (patch)
tree7df83ad87cf240da8e7f746d2636a50e52fbf40f /sbin
parent01c5e1836fccd528eccaa2ffe73ca4254d109720 (diff)
use RAW_PART, not 0
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fdisk/disk.c4
1 files changed, 2 insertions, 2 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;