Skip to contentSkip to conversation

rstream.c: Use proper define for ai_flags before getaddrinfo call in client_connect

PATCH New Hal Rosenstock 1 participant 1 message Sep 30, 2015 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rstream.c: Use proper define for ai_flags before getaddrinfo call in client_connect

even though both have same value

---

examples/rstream.c +1 -1
index d93e9aa..ba5e449 100644
@@ -421,7 +421,7 @@ static int client_connect(void)
 			rai_hints.ai_flags |= RAI_PASSIVE;
 			ret = rdma_getaddrinfo(src_addr, port, &rai_hints, &rai_src);
 		} else {
-			ai_hints.ai_flags |= RAI_PASSIVE;
+			ai_hints.ai_flags |= AI_PASSIVE;
 			ret = getaddrinfo(src_addr, port, &ai_hints, &ai_src);
 		}
 		if (ret) {

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html