From: Roy Marples Date: Wed, 31 Oct 2012 23:07:06 +0000 (+0000) Subject: Save a few bytes X-Git-Tag: v5.99.3~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4272b8b79ab346d2f06182ea46ba7295d7787e9e;p=thirdparty%2Fdhcpcd.git Save a few bytes --- diff --git a/ipv6.c b/ipv6.c index f56a5d1a..e50a7484 100644 --- a/ipv6.c +++ b/ipv6.c @@ -436,7 +436,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 &&