Fixes to wxMotif scrolling and colours (wxTreeCtrl/wxListCtrl now seem to work
well, ta-ra!); fixes to thread.cpp since constants were changed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -469,22 +469,13 @@ void wxSocketBase::Discard()
|
||||
bool wxSocketBase::GetPeer(wxSockAddress& addr_man) const
|
||||
{
|
||||
struct sockaddr my_addr;
|
||||
#ifdef __WXMSW__
|
||||
int len_addr = sizeof(my_addr);
|
||||
#else
|
||||
size_t len_addr = sizeof(my_addr);
|
||||
#endif
|
||||
|
||||
if (m_fd < 0)
|
||||
return FALSE;
|
||||
|
||||
if (getpeername(m_fd, (struct sockaddr *)&my_addr,
|
||||
#ifdef __WXMSW__
|
||||
&len_addr)
|
||||
#else
|
||||
(socklen_t *)&len_addr)
|
||||
#endif
|
||||
< 0)
|
||||
&len_addr) < 0)
|
||||
return FALSE;
|
||||
|
||||
addr_man.Disassemble(&my_addr, len_addr);
|
||||
@@ -494,22 +485,13 @@ bool wxSocketBase::GetPeer(wxSockAddress& addr_man) const
|
||||
bool wxSocketBase::GetLocal(wxSockAddress& addr_man) const
|
||||
{
|
||||
struct sockaddr my_addr;
|
||||
#ifdef __WXMSW__
|
||||
int len_addr = sizeof(my_addr);
|
||||
#else
|
||||
size_t len_addr = sizeof(my_addr);
|
||||
#endif
|
||||
|
||||
if (m_fd < 0)
|
||||
return FALSE;
|
||||
|
||||
if (getsockname(m_fd, (struct sockaddr *)&my_addr,
|
||||
#ifdef __WXMSW__
|
||||
&len_addr)
|
||||
#else
|
||||
(socklen_t *)&len_addr)
|
||||
#endif
|
||||
< 0)
|
||||
&len_addr) < 0)
|
||||
|
||||
return FALSE;
|
||||
|
||||
|
Reference in New Issue
Block a user