aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2005-05-09 16:45:28 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 11:35:56 -0800
commit25790defb7116f610487af4dfd7f6a733d4a7960 (patch)
tree470afa538e926512368dab70c77013bdcb85063a
parent9ff9391e6581577d46124cc5b64c1581c62998fe (diff)
downloadlibibverbs-25790defb7116f610487af4dfd7f6a733d4a7960.tar.gz
Fix pingpong parameter parsing typos
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>
-rw-r--r--examples/pingpong.c2
-rw-r--r--examples/ud-pingpong.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/pingpong.c b/examples/pingpong.c
index 9d3adcb..f7f6bd1 100644
--- a/examples/pingpong.c
+++ b/examples/pingpong.c
@@ -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;
}
diff --git a/examples/ud-pingpong.c b/examples/ud-pingpong.c
index 8aa6075..09c3295 100644
--- a/examples/ud-pingpong.c
+++ b/examples/ud-pingpong.c
@@ -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;
}