summaryrefslogtreecommitdiff
path: root/sys/arch/arc/include
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-24 02:17:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-24 02:17:37 +0000
commit41adac87bb94236110ab76910137e6a668839b06 (patch)
treee07fc73dc94af6167efb066045194f756e8e1620 /sys/arch/arc/include
parentce6d95672425907ecece37e2f9e0805b4e4134e9 (diff)
make this compile.. bad Per..
Diffstat (limited to 'sys/arch/arc/include')
-rw-r--r--sys/arch/arc/include/disklabel.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/arc/include/disklabel.h b/sys/arch/arc/include/disklabel.h
index 61e2c024655..e0bee562ee4 100644
--- a/sys/arch/arc/include/disklabel.h
+++ b/sys/arch/arc/include/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.8 1997/09/23 12:46:40 pefo Exp $ */
+/* $OpenBSD: disklabel.h,v 1.9 1997/09/24 02:17:36 deraadt Exp $ */
/* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */
/*
@@ -82,13 +82,14 @@ struct cpu_disklabel {
#define DPSECT(s) ((s) & 0x3f)
#define DPCYL(c, s) ((c) + (((s) & 0xc0) << 2))
+static __inline u_int32_t get_le __P((void *));
+
static __inline u_int32_t
get_le(p)
void *p;
{
- u_int32_t c;
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;