diff options
Diffstat (limited to 'example/packet/odp_pktio.c')
-rw-r--r-- | example/packet/odp_pktio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index caf82b7b2..fcce92b10 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -570,13 +570,11 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args) static const char *shortopts = "+c:i:+m:t:h"; /* let helper collect its own arguments (e.g. --odph_proc) */ - odph_parse_options(argc, argv, shortopts, longopts); + argc = odph_parse_options(argc, argv); appl_args->mode = APPL_MODE_PKT_SCHED; appl_args->time = 0; /**< loop forever */ - opterr = 0; /* do not issue errors on helper options */ - while (1) { opt = getopt_long(argc, argv, shortopts, longopts, &long_index); |