diff options
author | 1998-11-25 05:44:36 +0000 | |
---|---|---|
committer | 1998-11-25 05:44:36 +0000 | |
commit | 9112e268913350974a19a25af74a6ca5a686dee6 (patch) | |
tree | 065d9f583a5c9b0a485cfe249e7963dd6bbc05a0 /sys/netinet/tcp_input.c | |
parent | Must use lmin() not min() when comparing longs. Fixes alpha (diff) | |
download | wireguard-openbsd-9112e268913350974a19a25af74a6ca5a686dee6.tar.xz wireguard-openbsd-9112e268913350974a19a25af74a6ca5a686dee6.zip |
more min vs. ulmin/lmin fixes
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 72f19aafa92..1f2edfc9c3a 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.21 1998/11/17 19:23:01 provos Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.22 1998/11/25 05:44:36 millert Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -1292,9 +1292,9 @@ trimthenstep6: else if (++tp->t_dupacks == tcprexmtthresh) { #endif /* TCP_FACK */ tcp_seq onxt = tp->snd_nxt; - 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 defined(TCP_SACK) || defined(TCP_NEWRENO) if (SEQ_LT(ti->ti_ack, tp->snd_last)){ |