From owner-svn-src-stable-7@FreeBSD.ORG Thu Oct 30 16:15:12 2008 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 927B41065673; Thu, 30 Oct 2008 16:15:12 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 80A538FC23; Thu, 30 Oct 2008 16:15:12 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9UGFCgK055880; Thu, 30 Oct 2008 16:15:12 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9UGFCVa055879; Thu, 30 Oct 2008 16:15:12 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200810301615.m9UGFCVa055879@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Thu, 30 Oct 2008 16:15:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184478 - in stable/7/sys: . netinet6 X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 16:15:12 -0000 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);