]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Fix ibv_srq_pingpong option handling
authorRoland Dreier <rolandd@cisco.com>
Fri, 6 Apr 2007 14:44:39 +0000 (07:44 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 9 Apr 2007 07:24:32 +0000 (00:24 -0700)
Add missing break statement in command line option handling switch.
Without the break statement, setting the 'm' (mtu) command line option
fell through to the next case and the same value was used for the 'q'
(num-qp) option.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
(cherry picked from commit 09335ff6377acf90d5ed1c28a6ce69d2aa620e09)

examples/srq_pingpong.c

index 30dad47dd042ab9f97bbb5cc17f3550d7c70ea72..0ad422ddb404dcc1cb7f1e9c07915d5f32fd9af1 100644 (file)
@@ -575,6 +575,7 @@ int main(int argc, char *argv[])
                                usage(argv[0]);
                                return 1;
                        }
+                       break;
 
                case 'q':
                        num_qp = strtol(optarg, NULL, 0);