Skip to content

Commit

Permalink
casting
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis authored Oct 31, 2023
1 parent 830cbe0 commit 4f7528b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transport/ClientPosix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bool ClientPosix::connect(IPAddress ip, uint16_t port) {
_host.sin_addr.s_addr = htonl(uint32_t(ip));
_host.sin_port = ::htons(port);

int ret = ::connect(_sockfd, static_cast<sockaddr*>(&_host), sizeof(_host));
int ret = ::connect(_sockfd, reinterpret_cast<sockaddr*>(&_host), sizeof(_host));

if (ret < 0) {
emc_log_e("Error connecting: %d - (%d) %s", ret, errno, strerror(errno));
Expand Down

0 comments on commit 4f7528b

Please sign in to comment.