summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-04-25 06:15:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-04-25 06:15:18 +0000
commit8dcd53c9ea984dc9c7c976fa20752421339e479e (patch)
tree2dda976092dbfa7308a353254b449f5845c8493a /sys/arch/luna88k
parenta1cd832e141a9ccfc191a9898ae66e2fe5c31968 (diff)
introducing a 64-bit type to the disklabel structure leads some architectures
to pad-align the size of the structure; it grows, the disklabel ioctl's are break ABI. Change the uid to a character array. this also simplifies some other stuff ok jsing
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r--sys/arch/luna88k/luna88k/disksubr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/luna88k/luna88k/disksubr.c b/sys/arch/luna88k/luna88k/disksubr.c
index 0688bb43bf8..22f51d2d1f3 100644
--- a/sys/arch/luna88k/luna88k/disksubr.c
+++ b/sys/arch/luna88k/luna88k/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.44 2010/04/23 15:25:20 jsing Exp $ */
+/* $OpenBSD: disksubr.c,v 1.45 2010/04/25 06:15:17 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.12 2002/02/19 17:09:44 wiz Exp $ */
/*
@@ -264,7 +264,7 @@ disklabel_om_to_bsd(struct sun_disklabel *sl, struct disklabel *lp)
DL_SETDSIZE(lp, (daddr64_t)secpercyl * sl->sl_ncylinders);
lp->d_version = 1;
- lp->d_label_uid = sl->sl_label_uid;
+ memcpy(&lp->d_uid, &sl->sl_uid, sizeof(sl->sl_uid));
lp->d_acylinders = sl->sl_acylinders;
@@ -344,7 +344,7 @@ disklabel_bsd_to_om(struct disklabel *lp, struct sun_disklabel *sl)
sl->sl_ntracks = lp->d_ntracks;
sl->sl_nsectors = lp->d_nsectors;
- sl->sl_label_uid = lp->d_label_uid;
+ memcpy(&sl->sl_uid, &lp->d_uid, sizeof(lp->d_uid));
for (i = 0; i < 8; i++) {
spp = &sl->sl_part[i];