fix compile error introduced into `rdma_queue`.
@@ -244,8 +244,10 @@ int dmtr::rdma_queue::accept(std::unique_ptr<io_queue> &q_out, dmtr_qtoken_t qt,
// get the address
sockaddr *saddr;
- rdma_get_peer_addr(saddr, new_rdma_id);
- set_accept_qresult(qr_out, new_qd, *(sockaddr_in *)saddr, sizeof(sockaddr_in));
+ DMTR_OK(rdma_get_peer_addr(saddr, new_rdma_id));
+ set_accept_qresult(qr_out, new_qd, *reinterpret_cast<sockaddr_in *>(saddr), sizeof(sockaddr_in));
+
+ return 0;
}));
q_out = std::move(qq);
