summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2010-10-10 22:02:51 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2010-10-10 22:02:51 +0000
commitec2f0f98e62f90fa3a13a564db7a29b5bcad8c60 (patch)
treec4a819d32b5277d004c53454a3b69c68d6b8a879
parent1e84fda8967402dc74aad67727e4022e3db0a656 (diff)
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@
-rw-r--r--sys/netinet/tcp_usrreq.c6
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 */