diff options
author | 1997-07-06 08:04:10 +0000 | |
---|---|---|
committer | 1997-07-06 08:04:10 +0000 | |
commit | 0cac28462452d60ed085c8406a3565f47da63864 (patch) | |
tree | 59e8e772ed6f0be58f095abd08d287106bfa95df /sys/netinet/tcp_input.c | |
parent | Sync with changes from NetBSD, up to 970705. (diff) | |
download | wireguard-openbsd-0cac28462452d60ed085c8406a3565f47da63864.tar.xz wireguard-openbsd-0cac28462452d60ed085c8406a3565f47da63864.zip |
unsigned calc should be signed; jdp@polstra.com; freebsd pr#3998
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index e4ee455d89f..2dde11271fb 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.11 1997/06/10 19:46:41 deraadt Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.12 1997/07/06 08:04:10 deraadt Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -608,7 +608,7 @@ findpcb: win = sbspace(&so->so_rcv); if (win < 0) win = 0; - tp->rcv_wnd = max(win, (int)(tp->rcv_adv - tp->rcv_nxt)); + tp->rcv_wnd = imax(win, (int)(tp->rcv_adv - tp->rcv_nxt)); } switch (tp->t_state) { |