cvs commit: src/sys/net if.c route.c rtsock.c

Dag-Erling Smørgrav des at des.no
Fri Apr 16 07:59:48 PDT 2004


Luigi Rizzo <luigi at FreeBSD.org> writes:
> On Fri, Apr 16, 2004 at 12:54:11PM +0200, Dag-Erling Smørgrav wrote:
> > Luigi Rizzo <luigi at FreeBSD.org> 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
-- 
Dag-Erling Smørgrav - des at des.no


More information about the cvs-src mailing list