summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2012-11-14 10:31:11 +0000
committerRoy Marples <roy@marples.name>2012-11-14 10:31:11 +0000
commit56975609e8daf8cd2a9e652f0e7c2ce8699dfdbe (patch)
treefac392aacb177b471a18c2c8bb4abbbb9678fdf6
parent27ac6d558ade98bc0ef7a14b15ac35ed83d83d95 (diff)
downloaddhcpcd-56975609e8daf8cd2a9e652f0e7c2ce8699dfdbe.tar.xz
Save a few bytes
-rw-r--r--ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipv6.c b/ipv6.c
index 6ddad002..125b3872 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -429,7 +429,7 @@ ipv6_build_routes(void)
/* Remove old routes we used to manage
* If we own the default route, but not RA management itself
* then we need to preserve the last best default route we had */
- TAILQ_FOREACH_REVERSE_SAFE(rt, routes, rt6head, next, rtn) {
+ while ((rt = TAILQ_LAST(routes, rt6head))) {
TAILQ_REMOVE(routes, rt, next);
if (find_route6(nrs, rt) == NULL) {
if (!have_default &&