From 2325aff68bd939033dfbfb31f434d6e77d655f91 Mon Sep 17 00:00:00 2001 From: Robert Pearson Date: Mon, 14 Sep 2009 12:39:20 -0500 Subject: [PATCH] Fix fall-through bug in options case in pingpong examples Add missing breaks for the 'm' case of options handling. Signed-off-by: Bob Pearson Signed-off-by: Roland Dreier --- examples/rc_pingpong.c | 1 + examples/uc_pingpong.c | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/rc_pingpong.c b/examples/rc_pingpong.c index 26fa45c..d4115e4 100644 --- a/examples/rc_pingpong.c +++ b/examples/rc_pingpong.c @@ -558,6 +558,7 @@ int main(int argc, char *argv[]) usage(argv[0]); return 1; } + break; case 'r': rx_depth = strtol(optarg, NULL, 0); diff --git a/examples/uc_pingpong.c b/examples/uc_pingpong.c index c09c8c1..404b059 100644 --- a/examples/uc_pingpong.c +++ b/examples/uc_pingpong.c @@ -546,6 +546,7 @@ int main(int argc, char *argv[]) usage(argv[0]); return 1; } + break; case 'r': rx_depth = strtol(optarg, NULL, 0); -- 2.41.0