diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/tls_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/tls_client.cpp b/src/cmd/tls_client.cpp index 74607469f..543119fb9 100644 --- a/src/cmd/tls_client.cpp +++ b/src/cmd/tls_client.cpp @@ -64,7 +64,7 @@ int connect_to_host(const std::string& host, u16bit port, const std::string& tra host_addr->h_addr, host_addr->h_length); - socket_info.sin_addr = *(struct in_addr*)host_addr->h_addr; // FIXME + socket_info.sin_addr = *reinterpret_cast<struct in_addr*>(host_addr->h_addr); // FIXME if(::connect(fd, (sockaddr*)&socket_info, sizeof(struct sockaddr)) != 0) { |