Date: Thu, 30 Oct 2008 16:15:12 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r184478 - in stable/7/sys: . netinet6 Message-ID: <200810301615.m9UGFCVa055879@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810301615.m9UGFCVa055879>