summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-11-25 05:20:51 +0000
committermillert <millert@openbsd.org>1998-11-25 05:20:51 +0000
commit700476be691addacbae805e1d80254843720e339 (patch)
treef9f58263ed3e1eda9bb917b51fd7cea0f6d842f2
parentChanges from NetBSD: (diff)
downloadwireguard-openbsd-700476be691addacbae805e1d80254843720e339.tar.xz
wireguard-openbsd-700476be691addacbae805e1d80254843720e339.zip
Must use lmin() not min() when comparing longs. Fixes alpha
-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 b84d7e2879c..91898d5b140 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.13 1998/11/18 21:13:06 provos Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.14 1998/11/25 05:20:51 millert Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -267,7 +267,7 @@ again:
#ifdef TCP_SACK
if (!sack_rxmit) {
#endif
- len = min(so->so_snd.sb_cc, win) - off;
+ len = lmin(so->so_snd.sb_cc, win) - off;
#if defined(TCP_SACK) && defined(TCP_FACK)
/*