From patchwork Wed Sep 30 13:03:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 7297861 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AFD7C9F1D5 for ; Wed, 30 Sep 2015 13:03:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4906F206C5 for ; Wed, 30 Sep 2015 13:03:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3DEC7206B2 for ; Wed, 30 Sep 2015 13:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932931AbbI3NDO (ORCPT ); Wed, 30 Sep 2015 09:03:14 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:38658 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932930AbbI3NDL (ORCPT ); Wed, 30 Sep 2015 09:03:11 -0400 Received: by wiclk2 with SMTP id lk2so60783155wic.1 for ; Wed, 30 Sep 2015 06:03:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=Srk1T3uU9oCaQ/rjcBKt/33IG9riE3q5U2x6wGqtdis=; b=J56VCPSWFmlf/zJ6ktx4Cr64f4s7j9ULimnI3YPmS2rxdoU3ivbDkadbw5NZlCW8j2 cuCrnUyNLHeUOoExfTb4KSyDHlpsgnzQVYlyqi3if5sMtRox/59Nx30hh3tP1qJLx90o agF1Ekq5Tvj2Sv/ab27Jb6mNdEE0yR18EHrc5Jby3CBX1p7i/lh2WzCPGld0H+f1MnRk Is4OYN1nIlI2w2kEsgEyqxsGr3uUIZHDBTB/cT4hvnYU8FKtr9myoRsd/ktquV8vFchU X3aP482egOPQ+kcsXxnh8jehEBpgopLH+AcQ2VI60geLFwh26z4r4023GFUuxDZ8pKH4 rs9w== X-Gm-Message-State: ALoCoQkWaBGLOn6zmb2loOQHqN1Sn4ynojTmPjNHITFqzP8VjHOLm9eIZHdY5tsTCt2y7yqLVTcK X-Received: by 10.180.86.231 with SMTP id s7mr771413wiz.15.1443618190255; Wed, 30 Sep 2015 06:03:10 -0700 (PDT) Received: from [192.168.1.101] (c-71-234-225-223.hsd1.ct.comcast.net. [71.234.225.223]) by smtp.googlemail.com with ESMTPSA id p1sm671843wif.7.2015.09.30.06.03.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Sep 2015 06:03:09 -0700 (PDT) Message-ID: <560BDD8C.1070803@dev.mellanox.co.il> Date: Wed, 30 Sep 2015 09:03:08 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "Hefty, Sean" CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH librdmacm] rstream.c: Use proper define for ai_flags before getaddrinfo call in client_connect Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP even though both have same value Signed-off-by: Hal Rosenstock --- -- 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 --git a/examples/rstream.c b/examples/rstream.c index d93e9aa..ba5e449 100644 --- a/examples/rstream.c +++ b/examples/rstream.c @@ -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) {