svn commit: r184478 - in stable/7/sys: . netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Thu Oct 30 09:15:12 PDT 2008


Author: bz
Date: Thu Oct 30 16:15:12 2008
New Revision: 184478
URL: http://svn.freebsd.org/changeset/base/184478

Log:
  MFC: r183611
  
    Style changes: compare pointer to NULL and move a }.
  
  Approved by:	re (gnn)

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/netinet6/in6_pcb.c

Modified: stable/7/sys/netinet6/in6_pcb.c
==============================================================================
--- stable/7/sys/netinet6/in6_pcb.c	Thu Oct 30 16:11:07 2008	(r184477)
+++ stable/7/sys/netinet6/in6_pcb.c	Thu Oct 30 16:15:12 2008	(r184478)
@@ -255,8 +255,7 @@ in6_pcbbind(register struct inpcb *inp, 
 		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;
@@ -325,7 +324,7 @@ in6_pcbladdr(register struct inpcb *inp,
 		return(error);
 	}
 
-	if (*plocal_addr6 == 0) {
+	if (*plocal_addr6 == NULL) {
 		if (error == 0)
 			error = EADDRNOTAVAIL;
 		return (error);


More information about the svn-src-stable-7 mailing list