summaryrefslogtreecommitdiff
path: root/examples/l2fwd-keepalive/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/l2fwd-keepalive/main.c')
-rw-r--r--examples/l2fwd-keepalive/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l2fwd-keepalive/main.c b/examples/l2fwd-keepalive/main.c
index 60cccdb..068f4e5 100644
--- a/examples/l2fwd-keepalive/main.c
+++ b/examples/l2fwd-keepalive/main.c
@@ -464,7 +464,7 @@ l2fwd_parse_args(int argc, char **argv)
argv[optind-1] = prgname;
ret = optind-1;
- optind = 0; /* reset getopt lib */
+ optind = 1; /* reset getopt lib */
return ret;
}