diff options
| author | Roy Marples <roy@marples.name> | 2012-11-14 10:31:11 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2012-11-14 10:31:11 +0000 |
| commit | 56975609e8daf8cd2a9e652f0e7c2ce8699dfdbe (patch) | |
| tree | fac392aacb177b471a18c2c8bb4abbbb9678fdf6 | |
| parent | 27ac6d558ade98bc0ef7a14b15ac35ed83d83d95 (diff) | |
| download | dhcpcd-56975609e8daf8cd2a9e652f0e7c2ce8699dfdbe.tar.xz | |
Save a few bytes
| -rw-r--r-- | ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 && |
