From: Roy Marples Date: Wed, 14 Nov 2012 10:31:11 +0000 (+0000) Subject: Save a few bytes X-Git-Tag: v5.6.3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56975609e8daf8cd2a9e652f0e7c2ce8699dfdbe;p=thirdparty%2Fdhcpcd.git Save a few bytes --- 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 &&