Skip to content

Commit

Permalink
Merge pull request #23 from William-Mou/master
Browse files Browse the repository at this point in the history
Fix a compilation error: invalid conversion from ‘const char*’ to ‘char*’
  • Loading branch information
mcopik authored Mar 28, 2023
2 parents 23bb980 + dec6fc0 commit aa2f46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdmalib/lib/rdmalib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace rdmalib {
if(passive)
hints.ai_flags = RAI_PASSIVE;

impl::expect_zero(rdma_getaddrinfo(ip.c_str(), std::to_string(port).c_str(), &hints, &addrinfo));
impl::expect_zero(rdma_getaddrinfo(const_cast<char *>(ip.c_str()), const_cast<char *>(std::to_string(port).c_str()), &hints, &addrinfo));
this->_port = port;
}

Expand Down

0 comments on commit aa2f46b

Please sign in to comment.