]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Fix pingpong parameter parsing typos
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 9 May 2005 16:45:28 +0000 (16:45 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 9 Nov 2006 19:35:56 +0000 (11:35 -0800)
Fix for two obvious typos in pingpong and ud-pingpong parameter parsing
(found by Grant in rdma_lat code).

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@topspin.com>
examples/pingpong.c
examples/ud-pingpong.c

index 9d3adcb8bdd6287d124b5c864081ff0a340ae199..f7f6bd1cc86f0d24a87d2062543b54d1af42db87 100644 (file)
@@ -474,7 +474,7 @@ int main(int argc, char *argv[])
 
                case 'i':
                        ib_port = strtol(optarg, NULL, 0);
-                       if (port < 0) {
+                       if (ib_port < 0) {
                                usage(argv[0]);
                                return 1;
                        }
index 8aa60757f10e00933e62b2f71cc4971aa6a4f5a9..09c3295da87251e7c836a1991782b7590a8c6562 100644 (file)
@@ -473,7 +473,7 @@ int main(int argc, char *argv[])
 
                case 'i':
                        ib_port = strtol(optarg, NULL, 0);
-                       if (port < 0) {
+                       if (ib_port < 0) {
                                usage(argv[0]);
                                return 1;
                        }