summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-05-29 16:26:54 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-05-29 16:26:54 +0000
commit10a24c51015a6595ff16b241a18d00bc1095a536 (patch)
tree76d8665f79940b9090769374cf2d203665a531d7
parentd96c5b5b0280561422f132820f68608e945cb85d (diff)
Collapse the __partition_u1 union in struct disklabel,
keep p_cpg around since its need. remove p_sgs. ok otto@,krw@
-rw-r--r--sys/sys/disklabel.h9
1 files 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 */
};