From owner-cvs-src@FreeBSD.ORG Fri Apr 16 07:59:48 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 530A116A4CE; Fri, 16 Apr 2004 07:59:48 -0700 (PDT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id A32FC43D2F; Fri, 16 Apr 2004 07:59:47 -0700 (PDT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 18C6C530D; Fri, 16 Apr 2004 16:59:46 +0200 (CEST) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id A62975309; Fri, 16 Apr 2004 16:59:32 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id 574F833C6C; Fri, 16 Apr 2004 16:59:32 +0200 (CEST) To: Luigi Rizzo References: <200404160814.i3G8EYpj071288@repoman.freebsd.org> <20040416090520.GA1194@FreeBSD.org> <20040416023457.A12665@xorpc.icir.org> <20040416040536.A22418@xorpc.icir.org> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Fri, 16 Apr 2004 16:59:32 +0200 In-Reply-To: <20040416040536.A22418@xorpc.icir.org> (Luigi Rizzo's message of "Fri, 16 Apr 2004 04:05:36 -0700") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: Eivind Eklund cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if.c route.c rtsock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 14:59:48 -0000 Luigi Rizzo writes: > On Fri, Apr 16, 2004 at 12:54:11PM +0200, Dag-Erling Sm=F8rgrav wrote: > > Luigi Rizzo writes: > > > ifaddr_byindex() is already a macro, so i'd rather not have the > > > double indirection. > > What difference does it make? > it is two different ways of getting the same info, which is > precisely what i was trying to remove in the first place. No, my question was: what difference does an extra level of indirection make? It is resolved at compile time, so there is no run-time overhead. If it makes the code simpler and more obvious, it's a good thing. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no