diff options
author | 2010-10-10 22:02:50 +0000 | |
---|---|---|
committer | 2010-10-10 22:02:50 +0000 | |
commit | a6d5ab4602223b9323fce876b378c9e59efaf3a6 (patch) | |
tree | 3161eb3abc02e46617c2b8fe76e9fb2bedccea30 /sys/netinet/tcp_usrreq.c | |
parent | Compact Flash support for OCTEON (diff) | |
download | wireguard-openbsd-a6d5ab4602223b9323fce876b378c9e59efaf3a6.tar.xz wireguard-openbsd-a6d5ab4602223b9323fce876b378c9e59efaf3a6.zip |
In tcp_update_sndspace() and tcp_update_rcvspace() change the type
of the variable nmax from int to u_long as the socket buffer sizes
it operates on are also u_long.
ok claudio@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index b7018253a65..11a2012ede0 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.104 2010/09/29 06:32:47 claudio Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.105 2010/10/10 22:02:50 bluhm Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -973,7 +973,7 @@ void tcp_update_sndspace(struct tcpcb *tp) { struct socket *so = tp->t_inpcb->inp_socket; - int nmax; + u_long nmax; if (sbchecklowmem()) /* low on memory try to get rid of some */ @@ -1003,7 +1003,7 @@ void tcp_update_rcvspace(struct tcpcb *tp) { struct socket *so = tp->t_inpcb->inp_socket; - int nmax = so->so_rcv.sb_hiwat; + u_long nmax = so->so_rcv.sb_hiwat; if (sbchecklowmem()) /* low on memory try to get rid of some */ |