summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-04-07 08:04:49 +0000
committerderaadt <deraadt@openbsd.org>2001-04-07 08:04:49 +0000
commit755c7df8220316a2f2f1aff77d7183657fdaeb2f (patch)
treec458f3bb37b4631aaf139ad7a1a15ee4985f2eb8
parentPartial update to IPF 3.4.17; this fixes the *VERY* serious fragment (diff)
downloadwireguard-openbsd-755c7df8220316a2f2f1aff77d7183657fdaeb2f.tar.xz
wireguard-openbsd-755c7df8220316a2f2f1aff77d7183657fdaeb2f.zip
offsetof() should return size_t
-rw-r--r--sys/sys/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 8be7cf029ed..0a3196719c6 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.34 2001/04/06 04:46:18 csapuntz Exp $ */
+/* $OpenBSD: param.h,v 1.35 2001/04/07 08:04:49 deraadt Exp $ */
/* $NetBSD: param.h,v 1.23 1996/03/17 01:02:29 thorpej Exp $ */
/*-
@@ -196,7 +196,7 @@
/* Macros for calculating the offset of a field */
#if !defined(offsetof) && defined(_KERNEL)
-#define offsetof(s, e) ((unsigned int)&((s *)0)->e)
+#define offsetof(s, e) ((size_t)&((s *)0)->e)
#endif
/*