svn commit: r269280 - head/sys/netinet
Hiren Panchasara
hiren at FreeBSD.org
Tue Jul 29 23:42:52 UTC 2014
Author: hiren
Date: Tue Jul 29 23:42:51 2014
New Revision: 269280
URL: http://svnweb.freebsd.org/changeset/base/269280
Log:
Add a comment and while there, fix trailing whitespace.
Modified:
head/sys/netinet/in_pcb.c
Modified: head/sys/netinet/in_pcb.c
==============================================================================
--- head/sys/netinet/in_pcb.c Tue Jul 29 23:40:15 2014 (r269279)
+++ head/sys/netinet/in_pcb.c Tue Jul 29 23:42:51 2014 (r269280)
@@ -349,6 +349,9 @@ in_pcbbind(struct inpcb *inp, struct soc
}
#endif
+/*
+ * Select a local port (number) to use.
+ */
#if defined(INET) || defined(INET6)
int
in_pcb_lport(struct inpcb *inp, struct in_addr *laddrp, u_short *lportp,
@@ -462,7 +465,7 @@ in_pcb_lport(struct inpcb *inp, struct i
#ifdef INET
if ((inp->inp_vflag & (INP_IPV4|INP_IPV6)) == INP_IPV4)
laddrp->s_addr = laddr.s_addr;
-#endif
+#endif
*lportp = lport;
return (0);
More information about the svn-src-head
mailing list