summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-12-30 16:09:57 +0000
committerrwatson <rwatson@FreeBSD.org>2008-12-30 16:09:57 +0000
commit0c0b8926baf1c03e5f4b969ad18e800fabf42b3b (patch)
treeaa3b99bfd0984f533f04ca0afa672dfb322e2b05 /sys/kern/uipc_usrreq.c
parent6bb95353d1547faf399a3188dfe9162d7329bdb4 (diff)
downloadFreeBSD-src-0c0b8926baf1c03e5f4b969ad18e800fabf42b3b.zip
FreeBSD-src-0c0b8926baf1c03e5f4b969ad18e800fabf42b3b.tar.gz
Rename mbcnt to mbcnt_delta in uipc_send() -- unlike other local
variables named mbcnt in uipc_usrreq.c, this instance is a delta rather than a cache of sb_mbcnt. MFC after: 3 weeks
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 2e27bd4..e2acfd9 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -754,7 +754,7 @@ uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
{
struct unpcb *unp, *unp2;
struct socket *so2;
- u_int mbcnt, sbcc;
+ u_int mbcnt_delta, sbcc;
u_long newhiwat;
int error = 0;
@@ -884,7 +884,7 @@ uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
control = NULL;
} else
sbappend_locked(&so2->so_rcv, m);
- mbcnt = so2->so_rcv.sb_mbcnt - unp2->unp_mbcnt;
+ mbcnt_delta = so2->so_rcv.sb_mbcnt - unp2->unp_mbcnt;
unp2->unp_mbcnt = so2->so_rcv.sb_mbcnt;
sbcc = so2->so_rcv.sb_cc;
sorwakeup_locked(so2);
@@ -893,7 +893,7 @@ uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
newhiwat = so->so_snd.sb_hiwat - (sbcc - unp2->unp_cc);
(void)chgsbsize(so->so_cred->cr_uidinfo, &so->so_snd.sb_hiwat,
newhiwat, RLIM_INFINITY);
- so->so_snd.sb_mbmax -= mbcnt;
+ so->so_snd.sb_mbmax -= mbcnt_delta;
SOCKBUF_UNLOCK(&so->so_snd);
unp2->unp_cc = sbcc;
UNP_PCB_UNLOCK(unp2);
OpenPOWER on IntegriCloud