]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: Use union with sockaddr structures
authorSean Hefty <sean.hefty@intel.com>
Tue, 14 Jun 2011 17:30:51 +0000 (10:30 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 22 Aug 2011 20:59:34 +0000 (13:59 -0700)
commita46e8e7ea9f78239d01c65d0473755cf289ca1b6
treef554ae53ee3ae0f8d4fef6eb4fb862b634958913
parentf81ad9bf4c0a54880f26420e2b3825149965a9f3
librdmacm: Use union with sockaddr structures

To avoid strict aliasing compiler warnings, use an unamed union
to store the src and dst addresses.  This eliminates the need
for padding and sockaddr casts.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/cmatose.c
include/rdma/rdma_cma.h