From: Robert Pearson Date: Mon, 14 Sep 2009 17:39:20 +0000 (-0500) Subject: Fix fall-through bug in options case in pingpong examples X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=2325aff68bd939033dfbfb31f434d6e77d655f91;p=~shefty%2Flibibverbs.git 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 --- 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);