Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 11/20/2006 04:09:25
Module Name:	src
Committed By:	dyoung
Date:		Mon Nov 20 04:09:25 UTC 2006

Modified Files:
	src/sys/net: if.c

Log Message:
"Reform" TAILQ usage:

Obey the TAILQ abstraction while removing ifaddrs from an interface
in if_detach; just restart the loop after removing one or more
ifaddrs from the interface.

Convert a bunch of for (ifa = TAILQ_FIRST(); ifa; ifa = TAILQ_NEXT())
loops to TAILQ_FOREACH().

Remove some superfluous parentheses while I am here.


To generate a diff of this commit:
cvs rdiff -r1.177 -r1.178 src/sys/net/if.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.