From owner-cvs-all@FreeBSD.ORG Sun Apr 6 21:20:56 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C06D21065670; Sun, 6 Apr 2008 21:20:56 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8E1648FC13; Sun, 6 Apr 2008 21:20:56 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m36LKuWg027034; Sun, 6 Apr 2008 21:20:56 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m36LKutT027033; Sun, 6 Apr 2008 21:20:56 GMT (envelope-from rwatson) Message-Id: <200804062120.m36LKutT027033@repoman.freebsd.org> From: Robert Watson Date: Sun, 6 Apr 2008 21:20:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/netinet in_pcb.c src/sys/netinet6 in6_pcb.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2008 21:20:56 -0000 rwatson 2008-04-06 21:20:56 UTC FreeBSD src repository Modified files: sys/netinet in_pcb.c sys/netinet6 in6_pcb.c Log: In in_pcbnotifyall() and in6_pcbnotify(), use LIST_FOREACH_SAFE() and eliminate unnecessary local variable caching of the list head pointer, making the code a bit easier to read. MFC after: 3 weeks Revision Changes Path 1.203 +2 -5 src/sys/netinet/in_pcb.c 1.88 +2 -6 src/sys/netinet6/in6_pcb.c