Add a comment and while there, fix trailing whitespace.

This commit is contained in:
Hiren Panchasara 2014-07-29 23:42:51 +00:00
parent 232490c660
commit 39c8c62ec4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269280

View File

@ -349,6 +349,9 @@ in_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct ucred *cred)
}
#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 in_addr *laddrp, u_short *lportp,
#ifdef INET
if ((inp->inp_vflag & (INP_IPV4|INP_IPV6)) == INP_IPV4)
laddrp->s_addr = laddr.s_addr;
#endif
#endif
*lportp = lport;
return (0);