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/netinet/ip_icmp.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/netinet/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index af50040940a..b3e8beb3a5e 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_icmp.c,v 1.52 2002/06/10 09:13:26 itojun Exp $ */ +/* $OpenBSD: ip_icmp.c,v 1.53 2002/08/28 15:43:03 pefo Exp $ */ /* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */ /* @@ -791,7 +791,7 @@ icmp_send(m, opts) buf, inet_ntoa(ip->ip_src)); } #endif - (void) ip_output(m, opts, NULL, 0, NULL, NULL); + (void) ip_output(m, opts, (void *)NULL, 0, (void *)NULL, (void *)NULL); } n_time |