diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-08-28 15:43:04 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-08-28 15:43:04 +0000 |
commit | c940304939f4c564d83fb87d12af6559d9ccaa49 (patch) | |
tree | 0ed9381dc2c5b67e3df01614aa26f937a8ce9862 /sys/netns | |
parent | 3f526e41a355a9df6ca3f1c0e2947365f380cbf0 (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/netns')
-rw-r--r-- | sys/netns/ns_ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netns/ns_ip.c b/sys/netns/ns_ip.c index 47b25f59825..a8b70e1f598 100644 --- a/sys/netns/ns_ip.c +++ b/sys/netns/ns_ip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ns_ip.c,v 1.14 2001/06/27 03:49:55 angelos Exp $ */ +/* $OpenBSD: ns_ip.c,v 1.15 2002/08/28 15:43:03 pefo Exp $ */ /* $NetBSD: ns_ip.c,v 1.16 1996/05/09 22:29:40 scottr Exp $ */ /* @@ -310,7 +310,7 @@ nsipoutput(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; |