aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Pearson <rpearson@systemfabricworks.com>2009-09-14 12:39:20 -0500
committerRoland Dreier <rolandd@cisco.com>2009-09-14 11:25:13 -0700
commit2325aff68bd939033dfbfb31f434d6e77d655f91 (patch)
tree88d7bab50a627a88440b212434abff0115435dc5
parent1687a15b6b1246bc6b66a6e04be4e84627a4855e (diff)
downloadlibibverbs-2325aff68bd939033dfbfb31f434d6e77d655f91.tar.gz
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 <rpearson@systemfabricworks.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--examples/rc_pingpong.c1
-rw-r--r--examples/uc_pingpong.c1
2 files changed, 2 insertions, 0 deletions
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);