summaryrefslogtreecommitdiff
path: root/sys/netipx
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2002-08-28 15:43:04 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2002-08-28 15:43:04 +0000
commitc940304939f4c564d83fb87d12af6559d9ccaa49 (patch)
tree0ed9381dc2c5b67e3df01614aa26f937a8ce9862 /sys/netipx
parent3f526e41a355a9df6ca3f1c0e2947365f380cbf0 (diff)
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/netipx')
-rw-r--r--sys/netipx/ipx_ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netipx/ipx_ip.c b/sys/netipx/ipx_ip.c
index a01098637c4..782980532b1 100644
--- a/sys/netipx/ipx_ip.c
+++ b/sys/netipx/ipx_ip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipx_ip.c,v 1.11 2001/09/23 10:22:13 mickey Exp $ */
+/* $OpenBSD: ipx_ip.c,v 1.12 2002/08/28 15:43:03 pefo Exp $ */
/*-
*
@@ -300,7 +300,7 @@ ipxipoutput(ifp, m, dst, rt)
/*
* Output final datagram.
*/
- error = (ip_output(m, (struct mbuf *)0, ro, SO_BROADCAST, NULL));
+ error = (ip_output(m, (struct mbuf *)0, ro, SO_BROADCAST, (void *)NULL), (void *)NULL);
if (error) {
ifn->ifen_ifnet.if_oerrors++;
ifn->ifen_ifnet.if_ierrors = error;