summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/include
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-05-10 11:29:56 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-05-10 11:29:56 +0000
commit6794dac35e96fc9c591a9e155e5d7811b8a9ae8e (patch)
tree96d8c8c2622ac3109b7061822299bdb1c3cbe355 /sys/arch/hppa/include
parent1cc863e4b6094a9494eac740b28925d15bb355d4 (diff)
no reason to use long as we are most definately all 32bit
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r--sys/arch/hppa/include/loadfile_machdep.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/include/loadfile_machdep.h b/sys/arch/hppa/include/loadfile_machdep.h
index 88d67f0e947..dcf7b71f83f 100644
--- a/sys/arch/hppa/include/loadfile_machdep.h
+++ b/sys/arch/hppa/include/loadfile_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: loadfile_machdep.h,v 1.2 2004/06/14 00:32:31 deraadt Exp $ */
+/* $OpenBSD: loadfile_machdep.h,v 1.3 2005/05/10 11:29:55 mickey Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
#ifdef _STANDALONE
-#define LOADADDR(a) ((a) + offset)
+#define LOADADDR(a) ((u_int)(a) + offset)
#define ALIGNENTRY(a) 0
#define READ(f, b, c) pread((f), (void *)LOADADDR(b), (c))
#define BCOPY(s, d, c) vpbcopy((s), (void *)LOADADDR(d), (c))
@@ -64,8 +64,8 @@
#else
-#define LOADADDR(a) (((u_long)(a)) + offset)
-#define ALIGNENTRY(a) ((u_long)(a))
+#define LOADADDR(a) (((u_int)(a)) + offset)
+#define ALIGNENTRY(a) ((u_int)(a))
#define READ(f, b, c) read((f), (void *)LOADADDR(b), (c))
#define BCOPY(s, d, c) memcpy((void *)LOADADDR(d), (void *)(s), (c))
#define BZERO(d, c) memset((void *)LOADADDR(d), 0, (c))