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/net/if_gre.c | |
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/net/if_gre.c')
-rw-r--r-- | sys/net/if_gre.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 47c5f62aba9..85194a8963b 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.23 2002/06/30 13:04:36 itojun Exp $ */ +/* $OpenBSD: if_gre.c,v 1.24 2002/08/28 15:43:02 pefo Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -385,7 +385,7 @@ gre_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, ifp->if_obytes += m->m_pkthdr.len; /* Send it off */ - error = ip_output(m, NULL, &sc->route, 0, NULL, NULL); + error = ip_output(m, (void *)NULL, &sc->route, 0, (void *)NULL, (void *)NULL); end: if (error) ifp->if_oerrors++; |