summaryrefslogtreecommitdiff
path: root/dhcpctl/cltest.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2000-09-29 20:57:26 +0000
committerTed Lemon <source@isc.org>2000-09-29 20:57:26 +0000
commitf0b827ef342a72b3601a087f30a55bc9661e976c (patch)
treeaea5b7d2b5e825ffa627b96559602bfc640bdec4 /dhcpctl/cltest.c
parente6e1cb3ddd70a3faa0d817af960920a93cd0cb59 (diff)
downloadisc-dhcp-f0b827ef342a72b3601a087f30a55bc9661e976c.tar.gz
argv [i], not argv [1]
Diffstat (limited to 'dhcpctl/cltest.c')
-rw-r--r--dhcpctl/cltest.c2
1 files changed, 1 insertions, 1 deletions
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)