summaryrefslogtreecommitdiff
path: root/sys/arch/aviion/include
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-06-26 23:11:32 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-06-26 23:11:32 +0000
commita1d7cd01feeb95baf8b01d04ac65c3a898effa1e (patch)
tree3befb7a5fe40c753ec4e30c05439c51e91bf8e8c /sys/arch/aviion/include
parent9e9988f19afd848e2f55a63d7b7611b6cb7c706f (diff)
Clean up some inconsistancies in definitions around DOS MBR code. No
functional change. ok deraadt@
Diffstat (limited to 'sys/arch/aviion/include')
-rw-r--r--sys/arch/aviion/include/disklabel.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/aviion/include/disklabel.h b/sys/arch/aviion/include/disklabel.h
index 215d60b465f..46a012aee4c 100644
--- a/sys/arch/aviion/include/disklabel.h
+++ b/sys/arch/aviion/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.1 2006/05/09 18:32:42 miod Exp $ */
+/* $OpenBSD: disklabel.h,v 1.2 2006/06/26 23:11:31 krw Exp $ */
/* $NetBSD: disklabel.h,v 1.2 2001/11/25 19:02:03 thorpej Exp $ */
/*
@@ -87,7 +87,7 @@ struct dos_partition {
#define DOSPTYP_FAT16B 0x06 /* 16-bit FAT, more than 32M */
#define DOSPTYP_FAT32 0x0b /* 32-bit FAT */
#define DOSPTYP_FAT32L 0x0c /* 32-bit FAT, LBA-mapped */
-#define DOSPTYP_FAT16C 0x0e /* 16-bit FAT, CHS-mapped */
+#define DOSPTYP_FAT16L 0x0e /* 16-bit FAT, LBA-mapped */
#define DOSPTYP_EXTENDL 0x0f /* Extended, LBA-mapped; contains sub-partitions */
#define DOSPTYP_ONTRACK 0x54
#define DOSPTYP_LINUX 0x83 /* That other thing */
@@ -98,12 +98,12 @@ struct dos_partition {
#define DPCYL(c, s) ((c) + (((s) & 0xc0) << 2))
-static __inline u_int32_t get_le(void *p);
+static __inline u_int32_t get_le(void *);
static __inline u_int32_t
get_le(void *p)
{
u_int8_t *_p = (u_int8_t *)p;
- int x;
+ u_int32_t x;
x = _p[0];
x |= _p[1] << 8;
x |= _p[2] << 16;
@@ -111,9 +111,8 @@ get_le(void *p)
return x;
}
-#define NMBRPART 4
struct cpu_disklabel {
- struct dos_partition dosparts[NMBRPART];
+ struct dos_partition dosparts[NDOSPART];
struct dkbad bad;
};