]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
argv [i], not argv [1]
authorTed Lemon <source@isc.org>
Fri, 29 Sep 2000 20:57:26 +0000 (20:57 +0000)
committerTed Lemon <source@isc.org>
Fri, 29 Sep 2000 20:57:26 +0000 (20:57 +0000)
dhcpctl/cltest.c

index 7e048ebea81c67060d96fd4c1b22b3e19429b62b..7c68d71e62d953a613715d5c7f0b8e9d8ea08001 100644 (file)
@@ -75,7 +75,7 @@ int main (argc, argv)
        for (i = 1; i < argc; i++) {
                if (!strcmp (argv[i], "-u")) {
                        mode = up;
-               } else if (!strcmp (argv [1], "-d")) {
+               } else if (!strcmp (argv [i], "-d")) {
                        mode = down;
                } else if (!strcmp (argv[i], "-n")) {
                        if (++i == argc)