Style changes: compare pointer to NULL and move a }.

MFC after:	6 weeks
This commit is contained in:
Bjoern A. Zeeb 2008-10-04 17:07:58 +00:00
parent c6ddb94cf2
commit 55fd3bafdb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183611

View File

@ -259,8 +259,7 @@ in6_pcbbind(register struct inpcb *inp, struct sockaddr *nam,
int e;
if ((e = in6_pcbsetport(&inp->in6p_laddr, inp, cred)) != 0)
return (e);
}
else {
} else {
inp->inp_lport = lport;
if (in_pcbinshash(inp) != 0) {
inp->in6p_laddr = in6addr_any;
@ -330,7 +329,7 @@ in6_pcbladdr(register struct inpcb *inp, struct sockaddr *nam,
return(error);
}
if (*plocal_addr6 == 0) {
if (*plocal_addr6 == NULL) {
if (error == 0)
error = EADDRNOTAVAIL;
return (error);