summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-11-25 05:44:36 +0000
committermillert <millert@openbsd.org>1998-11-25 05:44:36 +0000
commit9112e268913350974a19a25af74a6ca5a686dee6 (patch)
tree065d9f583a5c9b0a485cfe249e7963dd6bbc05a0 /sys/netinet/tcp_output.c
parentMust use lmin() not min() when comparing longs. Fixes alpha (diff)
downloadwireguard-openbsd-9112e268913350974a19a25af74a6ca5a686dee6.tar.xz
wireguard-openbsd-9112e268913350974a19a25af74a6ca5a686dee6.zip
more min vs. ulmin/lmin fixes
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 91898d5b140..6e88e2dbc9b 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.14 1998/11/25 05:20:51 millert Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.15 1998/11/25 05:44:37 millert Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -202,7 +202,7 @@ again:
tcp_sack_adjust(tp);
#endif
off = tp->snd_nxt - tp->snd_una;
- win = min(tp->snd_wnd, tp->snd_cwnd);
+ win = ulmin(tp->snd_wnd, tp->snd_cwnd);
flags = tcp_outflags[tp->t_state];
/*
@@ -267,7 +267,7 @@ again:
#ifdef TCP_SACK
if (!sack_rxmit) {
#endif
- len = lmin(so->so_snd.sb_cc, win) - off;
+ len = ulmin(so->so_snd.sb_cc, win) - off;
#if defined(TCP_SACK) && defined(TCP_FACK)
/*
@@ -350,7 +350,7 @@ again:
* taking into account that we are limited by
* TCP_MAXWIN << tp->rcv_scale.
*/
- long adv = min(win, (long)TCP_MAXWIN << tp->rcv_scale) -
+ long adv = lmin(win, (long)TCP_MAXWIN << tp->rcv_scale) -
(tp->rcv_adv - tp->rcv_nxt);
if (adv >= (long) (2 * tp->t_maxseg))