summaryrefslogtreecommitdiffstats
path: root/sys/netiso/if_eon.c
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>2002-08-28 15:43:02 +0000
committerpefo <pefo@openbsd.org>2002-08-28 15:43:02 +0000
commit3df4938f0d1e666ada951c144459a2ad52e578f4 (patch)
treeaa711033b4db5fc741360fdfb1dbed88b5cdbdd3 /sys/netiso/if_eon.c
parento) start new sentence on a new line; (diff)
downloadwireguard-openbsd-3df4938f0d1e666ada951c144459a2ad52e578f4.tar.xz
wireguard-openbsd-3df4938f0d1e666ada951c144459a2ad52e578f4.zip
Fix a problem where passing NULL as a pointer with varargs does not promote
NULL to full 64 bits on a 64 bit address system. Soultion is to add a (void *) cast before NULL. This makes a 64 bit MIPS kernel work and will probably help future 64 bit ports as well. OK from art@
Diffstat (limited to 'sys/netiso/if_eon.c')
-rw-r--r--sys/netiso/if_eon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netiso/if_eon.c b/sys/netiso/if_eon.c
index c01712b8f41..5a458b98f27 100644
--- a/sys/netiso/if_eon.c
+++ b/sys/netiso/if_eon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_eon.c,v 1.16 2002/07/31 00:13:37 itojun Exp $ */
+/* $OpenBSD: if_eon.c,v 1.17 2002/08/28 15:43:03 pefo Exp $ */
/* $NetBSD: if_eon.c,v 1.15 1996/05/09 22:29:37 scottr Exp $ */
/*-
@@ -433,7 +433,7 @@ send:
}
#endif
- error = ip_output(m, (struct mbuf *) 0, ro, 0, NULL);
+ error = ip_output(m, (struct mbuf *) 0, ro, (void *)NULL, (void *)NULL);
m = 0;
if (error) {
ifp->if_oerrors++;