]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of ex-afib
authorSean Hefty <sean.hefty@intel.com>
Sun, 21 Jul 2013 04:25:04 +0000 (21:25 -0700)
committerSean Hefty <sean.hefty@intel.com>
Sun, 21 Jul 2013 04:25:04 +0000 (21:25 -0700)
examples/udaddy.c

index e49c93b1196a52c48a461615a19744eb3c3c1655..031b0b6becd27ebd4fc2ba09fe17889eb41a18c4 100644 (file)
@@ -429,7 +429,7 @@ static int alloc_nodes(void)
                if (dst_addr) {
                        ret = rdma_create_id(test.channel,
                                             &test.nodes[i].cma_id,
-                                            &test.nodes[i], port_space);
+                                            &test.nodes[i], hints.ai_port_space);
                        if (ret)
                                goto err;
                }
@@ -644,7 +644,7 @@ int main(int argc, char **argv)
                case 'P':
                        if (!strncasecmp("ib", optarg, 2)) {
                                hints.ai_port_space = RDMA_PS_IB;
-                       } else if (!stncasecmp("ipoib", optarg, 5)) {
+                       } else if (!strncasecmp("ipoib", optarg, 5)) {
                                hints.ai_port_space = RDMA_PS_IPOIB;
                        } else if (strncasecmp("udp", optarg, 3)) {
                                fprintf(stderr, "Warning: unknown port space format\n");