]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix starting all ifaces.
authorRoy Marples <roy@marples.name>
Tue, 24 Feb 2009 13:26:28 +0000 (13:26 +0000)
committerRoy Marples <roy@marples.name>
Tue, 24 Feb 2009 13:26:28 +0000 (13:26 +0000)
dhcpcd.c

index 7f0071d0bbe54e0766a155801eeb45cff27eb169..5c6a10e1eb9ec8a64d815385d041eace05718532 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1495,7 +1495,7 @@ main(int argc, char **argv)
                for (iface = ifaces; iface; iface = iface->next)
                        *ifp++ = iface;
                ifp = ifs;
-               while (--len != 0)
+               while (len-- != 0)
                        start_interface(*ifp++);
                free(ifs);
        }