Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2018 21:17:36 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339619 - in head/sys: netinet sys
Message-ID:  <201810222117.w9MLHaCn024096@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Oct 22 21:17:36 2018
New Revision: 339619
URL: https://svnweb.freebsd.org/changeset/base/339619

Log:
  A couple of style fixes in recent TCP changes.
  
  - Add a blank line before a block comment to match other block comments
    in the same function.
  - Sort the prototype for sbsndptr_adv and fix whitespace between return
    type and function name.
  
  Reviewed by:	gallatin, bz
  Differential Revision:	https://reviews.freebsd.org/D17474

Modified:
  head/sys/netinet/tcp_output.c
  head/sys/sys/sockbuf.h

Modified: head/sys/netinet/tcp_output.c
==============================================================================
--- head/sys/netinet/tcp_output.c	Mon Oct 22 20:55:35 2018	(r339618)
+++ head/sys/netinet/tcp_output.c	Mon Oct 22 21:17:36 2018	(r339619)
@@ -895,6 +895,7 @@ send:
 					len = max_len;
 				}
 			}
+
 			/*
 			 * Prevent the last segment from being
 			 * fractional unless the send sockbuf can be

Modified: head/sys/sys/sockbuf.h
==============================================================================
--- head/sys/sys/sockbuf.h	Mon Oct 22 20:55:35 2018	(r339618)
+++ head/sys/sys/sockbuf.h	Mon Oct 22 21:17:36 2018	(r339619)
@@ -165,10 +165,9 @@ int	sbreserve_locked(struct sockbuf *sb, u_long cc, st
 	    struct thread *td);
 struct mbuf *
 	sbsndptr(struct sockbuf *sb, u_int off, u_int len, u_int *moff);
+void	sbsndptr_adv(struct sockbuf *sb, struct mbuf *mb, u_int len);
 struct mbuf *
 	sbsndptr_noadv(struct sockbuf *sb, u_int off, u_int *moff);
-void
-	sbsndptr_adv(struct sockbuf *sb, struct mbuf *mb, u_int len);
 struct mbuf *
 	sbsndmbuf(struct sockbuf *sb, u_int off, u_int *moff);
 int	sbwait(struct sockbuf *sb);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810222117.w9MLHaCn024096>