svn commit: r261205 - projects/sendfile/sys/kern

Gleb Smirnoff glebius at FreeBSD.org
Mon Jan 27 07:53:11 UTC 2014


Author: glebius
Date: Mon Jan 27 07:53:10 2014
New Revision: 261205
URL: http://svnweb.freebsd.org/changeset/base/261205

Log:
  Replace one more bare usage of socket buffer field with method.

Modified:
  projects/sendfile/sys/kern/uipc_socket.c

Modified: projects/sendfile/sys/kern/uipc_socket.c
==============================================================================
--- projects/sendfile/sys/kern/uipc_socket.c	Mon Jan 27 06:31:37 2014	(r261204)
+++ projects/sendfile/sys/kern/uipc_socket.c	Mon Jan 27 07:53:10 2014	(r261205)
@@ -3350,7 +3350,7 @@ soisdisconnected(struct socket *so)
 	sorwakeup_locked(so);
 	SOCKBUF_LOCK(&so->so_snd);
 	so->so_snd.sb_state |= SBS_CANTSENDMORE;
-	sbdrop_locked(&so->so_snd, so->so_snd.sb_ccc);
+	sbdrop_locked(&so->so_snd, sbused(&so->so_snd));
 	sowwakeup_locked(so);
 	wakeup(&so->so_timeo);
 }


More information about the svn-src-projects mailing list