]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Fix fall-through bug in options case in pingpong examples
authorRobert Pearson <rpearson@systemfabricworks.com>
Mon, 14 Sep 2009 17:39:20 +0000 (12:39 -0500)
committerRoland Dreier <rolandd@cisco.com>
Mon, 14 Sep 2009 18:25:13 +0000 (11:25 -0700)
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>
examples/rc_pingpong.c
examples/uc_pingpong.c

index 26fa45c22ef0fcb34ec30c661caadf727e63ff39..d4115e4a872793da203322745e4077bd654fd3c9 100644 (file)
@@ -558,6 +558,7 @@ int main(int argc, char *argv[])
                                usage(argv[0]);
                                return 1;
                        }
+                       break;
 
                case 'r':
                        rx_depth = strtol(optarg, NULL, 0);
index c09c8c1b0781620c9e4860525639426b5c8ddbfb..404b0595c5e705c50e510f6586a56442756f30fb 100644 (file)
@@ -546,6 +546,7 @@ int main(int argc, char *argv[])
                                usage(argv[0]);
                                return 1;
                        }
+                       break;
 
                case 'r':
                        rx_depth = strtol(optarg, NULL, 0);