summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.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/netinet/tcp_output.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/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 1b4897d9ae1..5523f172ec8 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.52 2002/06/09 16:26:11 itojun Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.53 2002/08/28 15:43:03 pefo Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -1111,7 +1111,7 @@ send:
&tp->t_inpcb->inp_route,
(ip_mtudisc ? IP_MTUDISC : 0) |
(so->so_options & SO_DONTROUTE),
- 0, tp->t_inpcb);
+ (void *)NULL, tp->t_inpcb);
break;
#endif /* INET */
#ifdef INET6