diff mbox

[librdmacm] rstream: fix "-T resolve" detection

Message ID 1398093444-24384-1-git-send-email-pmacarth@iol.unh.edu (mailing list archive)
State Rejected
Headers show

Commit Message

Patrick MacArthur April 21, 2014, 3:17 p.m. UTC
The effect of the check for "-T resolve" was reversed, so that -T with
any invalid value would result in the "-T resolve" behavior, and
"-T resolve" would result in an error.
---
 examples/rstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Patrick MacArthur April 21, 2014, 3:37 p.m. UTC | #1
Hi, Sean,

Add:

Signed-off-by: Patrick MacArthur <pmacarth@iol.unh.edu>

I can resend the patch if you would like.

Thanks,
Patrick
Hefty, Sean April 21, 2014, 3:53 p.m. UTC | #2
> Signed-off-by: Patrick MacArthur <pmacarth@iol.unh.edu>
> 
> I can resend the patch if you would like.

thanks - no need to resend
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/examples/rstream.c b/examples/rstream.c
index 27326c2ebc7f..05598a89755d 100644
--- a/examples/rstream.c
+++ b/examples/rstream.c
@@ -577,7 +577,7 @@  static int set_test_opt(char *optarg)
 			flags = (flags & ~MSG_DONTWAIT) | MSG_WAITALL;
 		} else if (!strncasecmp("nonblock", optarg, 8)) {
 			flags |= MSG_DONTWAIT;
-		} else if (strncasecmp("resolve", optarg, 7)) {
+		} else if (!strncasecmp("resolve", optarg, 7)) {
 			use_rgai = 1;
 		} else if (!strncasecmp("verify", optarg, 6)) {
 			verify = 1;