summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.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_timer.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_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 53f4ef0e130..bd2d69c8fa6 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_timer.c,v 1.9 1998/11/17 19:23:02 provos Exp $ */
+/* $OpenBSD: tcp_timer.c,v 1.10 1998/11/25 05:44:37 millert Exp $ */
/* $NetBSD: tcp_timer.c,v 1.14 1996/02/13 23:44:09 christos Exp $ */
/*
@@ -279,7 +279,7 @@ tcp_timers(tp, timer)
* to go below this.)
*/
{
- u_int win = min(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg;
+ u_long win = ulmin(tp->snd_wnd, tp->snd_cwnd) / 2 / tp->t_maxseg;
if (win < 2)
win = 2;
tp->snd_cwnd = tp->t_maxseg;