Remove bizarre cast of sockaddr to char*
This commit is contained in:
parent
9ed9bde4e7
commit
f174614655
|
@ -737,8 +737,7 @@ ArchNetworkBSD::addrToName(ArchNetAddress addr)
|
||||||
|
|
||||||
// mutexed name lookup (ugh)
|
// mutexed name lookup (ugh)
|
||||||
ARCH->lockMutex(m_mutex);
|
ARCH->lockMutex(m_mutex);
|
||||||
struct hostent* info = gethostbyaddr(
|
struct hostent* info = gethostbyaddr(&addr->m_addr,
|
||||||
static_cast<const char*>(&addr->m_addr),
|
|
||||||
addr->m_len, addr->m_addr.sa_family);
|
addr->m_len, addr->m_addr.sa_family);
|
||||||
if (info == NULL) {
|
if (info == NULL) {
|
||||||
ARCH->unlockMutex(m_mutex);
|
ARCH->unlockMutex(m_mutex);
|
||||||
|
|
Loading…
Reference in New Issue