summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-07-01 16:50:34 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-07-01 16:50:34 +0000
commitb545b1cfa11001abb9631403bb55140b333a62e9 (patch)
tree62374e5b8097be1d763970a98ab9a508b60343da /sys/arch/i386/include
parent7937c561d78b712d86ccecc567ac3775851bb59d (diff)
Eliminate redundant get_le() in favour of letoh32(). Add letoh32()
calls in alpha, hppa, hppa64 and mips63 when accessing the two DOS MBR u_int32_t fields dp_size and dp_start. No functional change.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/disklabel.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/arch/i386/include/disklabel.h b/sys/arch/i386/include/disklabel.h
index 7b7e39e3762..7510dde1d35 100644
--- a/sys/arch/i386/include/disklabel.h
+++ b/sys/arch/i386/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.27 2004/11/10 10:36:12 grange Exp $ */
+/* $OpenBSD: disklabel.h,v 1.28 2006/07/01 16:50:33 krw Exp $ */
/* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */
/*
@@ -96,18 +96,4 @@ struct cpu_disklabel {
#define DPSECT(s) ((s) & 0x3f)
#define DPCYL(c, s) ((c) + (((s) & 0xc0) << 2))
-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;
- u_int32_t x;
- x = _p[0];
- x |= _p[1] << 8;
- x |= _p[2] << 16;
- x |= _p[3] << 24;
- return x;
-}
-
#endif /* _MACHINE_DISKLABEL_H_ */