]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rdma_client: use perror, unwind allocs on failure
authorDoug Ledford <dledford@redhat.com>
Wed, 18 Jun 2014 17:44:13 +0000 (10:44 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 18 Jun 2014 17:44:13 +0000 (10:44 -0700)
commit1bc834aeca99a4dd0c5bea733e2735f148b4418c
tree0a87dd48b46cfe180a2b5d331c443345a20ff873
parent05fc15b44805a23a4e8562d1953074243950dfbe
rdma_client: use perror, unwind allocs on failure

Our main test function prints out errno directly, which is hard to read
as it's not decoded at all.  Instead, use perror() to make failures more
readable.  Also redo the failure flow so that we can do a simple unwind
at the end of the function and just jump to the right unwind spot on
error.

Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/rdma_client.c