wonder how this could work with other compilers :-( ...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4209
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GSocketError _GAddress_Init_INET(GAddress *address)
{
+ address->m_len = sizeof(struct sockaddr_in);
address->m_addr = (struct sockaddr *) malloc(address->m_len);
if (address->m_addr == NULL)
{
return GSOCK_MEMERR;
}
- address->m_len = sizeof(struct sockaddr_in);
address->m_family = GSOCK_INET;
address->m_realfamily = PF_INET;
((struct sockaddr_in *)address->m_addr)->sin_family = AF_INET;