diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-06 08:04:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-06 08:04:11 +0000 |
commit | e1d0dc56bade372eb1d5387348e25f61c5352b38 (patch) | |
tree | 2c057f27f1f58b1fc0c4ef3f6417e4e170f5cfe4 /sys | |
parent | a3b5edea3991a5af513f92dd86991d7b1a561a54 (diff) |
unsigned calc should be signed; jdp@polstra.com; freebsd pr#3998
Diffstat (limited to 'sys')
-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) { |