From f0b827ef342a72b3601a087f30a55bc9661e976c Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Fri, 29 Sep 2000 20:57:26 +0000 Subject: [PATCH] argv [i], not argv [1] --- dhcpctl/cltest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcpctl/cltest.c b/dhcpctl/cltest.c index 7e048ebe..7c68d71e 100644 --- a/dhcpctl/cltest.c +++ b/dhcpctl/cltest.c @@ -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)