]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Rever prior patch that added an extra second per interface now we
authorRoy Marples <roy@marples.name>
Sat, 26 Jun 2010 10:36:20 +0000 (10:36 +0000)
committerRoy Marples <roy@marples.name>
Sat, 26 Jun 2010 10:36:20 +0000 (10:36 +0000)
always daemonise in master mode.

dhcpcd.c

index 11db53afbaa5395de428ba28fa32b069e2ee22d0..3759722d00d4811bd7dc2123538ed5e52e5184c2 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -195,7 +195,6 @@ void
 handle_exit_timeout(_unused void *arg)
 {
        int timeout;
-       struct interface *ifp;
 
        syslog(LOG_ERR, "timed out");
        if (!(options & DHCPCD_TIMEOUT_IPV4LL)) {
@@ -207,9 +206,6 @@ handle_exit_timeout(_unused void *arg)
        }
        options &= ~DHCPCD_TIMEOUT_IPV4LL;
        timeout = (PROBE_NUM * PROBE_MAX) + PROBE_WAIT + 1;
-       /* Add an extra second per interface */
-       for (ifp = ifaces; ifp; ifp = ifp->next)
-               timeout++;
        syslog(LOG_WARNING, "allowing %d seconds for IPv4LL timeout", timeout);
        add_timeout_sec(timeout, handle_exit_timeout, NULL);
 }