2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 05:17:57 +00:00

argv [i], not argv [1]

This commit is contained in:
Ted Lemon 2000-09-29 20:57:26 +00:00
parent e6e1cb3ddd
commit f0b827ef34

View File

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