summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-10-01 20:28:13 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-10-01 20:28:13 +0000
commit4ab23710cdd747c81b3f3a7ed37e7d39167ada08 (patch)
tree239c6bd620e40ad8f1875e27f121137271ae3a23 /sys/arch/socppc
parente6a0a6e216ba3a5bebbb9dc72bd315eb388b8083 (diff)
Use DOS_LABELSECTOR rather than LABELSECTOR to indicate offset into an
OpenBSD partition when accessing the disklabel. For these files both are '1', but this makes the usage consistent across all archs. ok guenther@ miod@
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r--sys/arch/socppc/stand/boot/wd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/socppc/stand/boot/wd.c b/sys/arch/socppc/stand/boot/wd.c
index 0f1c3c349af..c55e550eddc 100644
--- a/sys/arch/socppc/stand/boot/wd.c
+++ b/sys/arch/socppc/stand/boot/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.8 2015/10/01 16:08:20 krw Exp $ */
+/* $OpenBSD: wd.c,v 1.9 2015/10/01 20:28:12 krw Exp $ */
/* $NetBSD: wd.c,v 1.5 2005/12/11 12:17:06 christos Exp $ */
/*-
@@ -200,7 +200,7 @@ wdgetdisklabel(wd)
}
}
- if (wdstrategy(wd, F_READ, sector + LABELSECTOR, DEV_BSIZE,
+ if (wdstrategy(wd, F_READ, sector + DOS_LABELSECTOR, DEV_BSIZE,
buf, &rsize))
return EOFFSET;