mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 13:28:14 +00:00
argv [i], not argv [1]
This commit is contained in:
parent
e6e1cb3ddd
commit
f0b827ef34
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user