]> git.openfabrics.org - ~shefty/librdmacm.git/commit
From patchwork Wed Sep 30 13:02:04 2015
authorSean Hefty <sean.hefty@intel.com>
Tue, 6 Oct 2015 20:18:20 +0000 (13:18 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 6 Oct 2015 20:18:20 +0000 (13:18 -0700)
commit9b3ee24ae8f345ebcf7e977f766478126964619f
tree5052d2075e5374773b258f1a88c3f2208f44218e
parentfe4cc839e08a300b25592d16018bc904784e27ca
From patchwork Wed Sep 30 13:02:04 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [librdmacm] examples: Use gai_strerror rather than perror for
[rdma_]getaddrinfo failures
From: Hal Rosenstock <hal@dev.mellanox.co.il>
X-Patchwork-Id: 7297841
Message-Id: <560BDD4C.8070600@dev.mellanox.co.il>
To: "Hefty, Sean" <sean.hefty@intel.com>
Cc: "linux-rdma (linux-rdma@vger.kernel.org)" <linux-rdma@vger.kernel.org>
Date: Wed, 30 Sep 2015 09:02:04 -0400

[rdma_]getaddrinfo error codes are decoded by gai_strerror (and not
set in errno) so replace perror calls following these failed calls.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
13 files changed:
examples/cmatose.c
examples/cmtime.c
examples/mckey.c
examples/rcopy.c
examples/rdma_client.c
examples/rdma_server.c
examples/rdma_xclient.c
examples/rdma_xserver.c
examples/riostream.c
examples/rping.c
examples/rstream.c
examples/udaddy.c
examples/udpong.c