diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/sys/rdma/rdma_factories.cpp | 2 | ||||
-rw-r--r-- | cpp/src/qpid/sys/rdma/rdma_factories.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/rdma/rdma_factories.cpp b/cpp/src/qpid/sys/rdma/rdma_factories.cpp index 7090f12e89..a66f5b4035 100644 --- a/cpp/src/qpid/sys/rdma/rdma_factories.cpp +++ b/cpp/src/qpid/sys/rdma/rdma_factories.cpp @@ -87,7 +87,7 @@ namespace Rdma { return boost::shared_ptr< ::ibv_pd >(pd, deallocPd); } - boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, int access) { + boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, ::ibv_access_flags access) { ::ibv_mr* mr = CHECK_NULL(::ibv_reg_mr(pd, addr, length, access)); return boost::shared_ptr< ::ibv_mr >(mr, deregMr); } diff --git a/cpp/src/qpid/sys/rdma/rdma_factories.h b/cpp/src/qpid/sys/rdma/rdma_factories.h index eded68976c..bfca71fc7e 100644 --- a/cpp/src/qpid/sys/rdma/rdma_factories.h +++ b/cpp/src/qpid/sys/rdma/rdma_factories.h @@ -32,7 +32,7 @@ namespace Rdma { boost::shared_ptr< ::rdma_cm_event > mkEvent(::rdma_cm_event* e); boost::shared_ptr< ::ibv_qp > mkQp(::ibv_qp* qp); boost::shared_ptr< ::ibv_pd > allocPd(::ibv_context* c); - boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, int access); + boost::shared_ptr< ::ibv_mr > regMr(::ibv_pd* pd, void* addr, size_t length, ::ibv_access_flags access); boost::shared_ptr< ::ibv_comp_channel > mkCChannel(::ibv_context* c); boost::shared_ptr< ::ibv_cq > mkCq(::ibv_context* c, int cqe, void* context, ::ibv_comp_channel* cc); } |