summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-04-06 04:42:10 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-04-06 04:42:10 +0000
commitffceee0a9bdf5623166b2e619112624678bdd7d6 (patch)
tree6b4c1cde2b4bfeae53032bc8bd9ddd33aa7b1f10 /sys/arch/alpha
parentccea5a5a7c92530c31d0d76d0c1b2fd4ccf7e938 (diff)
Move offsetof define into sys/param.h
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/genassym.c4
-rw-r--r--sys/arch/alpha/alpha/prom.c5
2 files changed, 2 insertions, 7 deletions
diff --git a/sys/arch/alpha/alpha/genassym.c b/sys/arch/alpha/alpha/genassym.c
index 873c9fd7f10..bce562f86d9 100644
--- a/sys/arch/alpha/alpha/genassym.c
+++ b/sys/arch/alpha/alpha/genassym.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: genassym.c,v 1.9 2001/01/15 11:58:54 art Exp $ */
+/* $OpenBSD: genassym.c,v 1.10 2001/04/06 04:42:05 csapuntz Exp $ */
/* $NetBSD: genassym.c,v 1.27 2000/05/26 00:36:42 thorpej Exp $ */
/*
@@ -87,8 +87,6 @@
extern void printf __P((const char *fmt, ...));
extern void exit __P((int));
-#define offsetof(type, member) ((size_t)(&((type *)0)->member))
-
#ifdef __STDC__
#define def(name, value) { #name, value }
#define def1(name) { #name, name }
diff --git a/sys/arch/alpha/alpha/prom.c b/sys/arch/alpha/alpha/prom.c
index 62c6fe610ca..026598b97f9 100644
--- a/sys/arch/alpha/alpha/prom.c
+++ b/sys/arch/alpha/alpha/prom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: prom.c,v 1.9 2001/01/20 20:27:40 art Exp $ */
+/* $OpenBSD: prom.c,v 1.10 2001/04/06 04:42:05 csapuntz Exp $ */
/* $NetBSD: prom.c,v 1.39 2000/03/06 21:36:05 thorpej Exp $ */
/*
@@ -295,9 +295,6 @@ hwrpb_checksum()
u_int64_t *p, sum;
int i;
-#ifndef offsetof
-#define offsetof(type, member) ((size_t)(&((type *)0)->member)) /* XXX */
-#endif
for (i = 0, p = (u_int64_t *)hwrpb, sum = 0;
i < (offsetof(struct rpb, rpb_checksum) / sizeof (u_int64_t));
i++, p++)