From 10a24c51015a6595ff16b241a18d00bc1095a536 Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Tue, 29 May 2007 16:26:54 +0000 Subject: Collapse the __partition_u1 union in struct disklabel, keep p_cpg around since its need. remove p_sgs. ok otto@,krw@ --- sys/sys/disklabel.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index f7a3e7fbf83..492ed4f1e2d 100644 --- a/sys/sys/disklabel.h +++ b/sys/sys/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.29 2007/05/29 06:28:14 otto Exp $ */ +/* $OpenBSD: disklabel.h,v 1.30 2007/05/29 16:26:53 thib Exp $ */ /* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */ /* @@ -163,12 +163,7 @@ struct disklabel { u_int16_t p_sizeh; /* number of sectors (high part) */ u_int8_t p_fstype; /* filesystem type, see below */ u_int8_t p_fragblock; /* encoded filesystem frag/block */ - union { - u_int16_t cpg; /* UFS: FS cylinders per group */ - u_int16_t sgs; /* LFS: FS segment shift */ - } __partition_u1; -#define p_cpg __partition_u1.cpg -#define p_sgs __partition_u1.sgs + u_int16_t p_cpg; /* UFS: FS cylinders per group */ } d_partitions[MAXPARTITIONS]; /* actually may be more */ }; -- cgit v1.2.3