This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Remove bizarre cast of sockaddr to char*

  • Loading branch information...
nlyan committed Sep 9, 2016
1 parent 9ed9bde commit f17461465566566698cd86e00f8c6596e16a1d51
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/lib/arch/unix/ArchNetworkBSD.cpp
@@ -737,8 +737,7 @@ ArchNetworkBSD::addrToName(ArchNetAddress addr)
// mutexed name lookup (ugh)
ARCH->lockMutex(m_mutex);
- struct hostent* info = gethostbyaddr(
- static_cast<const char*>(&addr->m_addr),
+ struct hostent* info = gethostbyaddr(&addr->m_addr,
addr->m_len, addr->m_addr.sa_family);
if (info == NULL) {
ARCH->unlockMutex(m_mutex);

0 comments on commit f174614

Please sign in to comment.