Commit bce9486f authored by Aurelio Colosimo's avatar Aurelio Colosimo

fixed cmdline: when option is a flag, do not check for next argument

parent 4d55d5b6
......@@ -174,7 +174,6 @@ int pp_parse_cmdline(struct pp_instance *ppi, int argc, char **argv)
OPTS(ppi)->max_foreign_records = 1;
break;
case 'g':
a = argv[++i];
OPTS(ppi)->slave_only = 1;
break;
case 'v':
......@@ -201,11 +200,9 @@ int pp_parse_cmdline(struct pp_instance *ppi, int argc, char **argv)
OPTS(ppi)->prio2 = atoi(a);
break;
case 'h':
a = argv[++i];
OPTS(ppi)->e2e_mode = 1;
break;
case 'G':
a = argv[++i];
OPTS(ppi)->gptp_mode = 1;
OPTS(ppi)->e2e_mode = 1;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment