]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rdma_server: use perror, unwind allocs on failure
authorDoug Ledford <dledford@redhat.com>
Wed, 18 Jun 2014 17:44:28 +0000 (10:44 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 18 Jun 2014 17:44:28 +0000 (10:44 -0700)
commit2c2e44e144f17c2cef4af052ec91a680c9a81fb9
treeaba93beee1c72b4d9c4dd0f26b5772e6b16f4ece
parent1bc834aeca99a4dd0c5bea733e2735f148b4418c
rdma_server: 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_server.c