bool wxSocketBase::GetPeer(wxSockAddress& addr_man) const
{
struct sockaddr my_addr;
- size_t len_addr = sizeof(my_addr);
+ int len_addr = sizeof(my_addr);
if (m_fd < 0)
return FALSE;
- if (getpeername(m_fd, (struct sockaddr *)&my_addr, (int *)&len_addr) < 0)
+ if (getpeername(m_fd, (struct sockaddr *)&my_addr,
+ &len_addr) < 0)
return FALSE;
addr_man.Disassemble(&my_addr, len_addr);
bool wxSocketBase::GetLocal(wxSockAddress& addr_man) const
{
struct sockaddr my_addr;
- size_t len_addr = sizeof(my_addr);
+ int len_addr = sizeof(my_addr);
if (m_fd < 0)
return FALSE;
- if (getsockname(m_fd, (struct sockaddr *)&my_addr, (int *)&len_addr) < 0)
+ if (getsockname(m_fd, (struct sockaddr *)&my_addr,
+ &len_addr) < 0)
+
return FALSE;
addr_man.Disassemble(&my_addr, len_addr);