fix warning about comparing (signed) -1 with (unsigned) in_addr_t under Solaris

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-03-06 13:43:56 +00:00
parent 5f8ba10e86
commit 1d836590aa

View File

@ -1656,7 +1656,7 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname)
if (inet_aton(hostname, addr) == 0)
{
#elif defined(HAVE_INET_ADDR)
if ( (addr->s_addr = inet_addr(hostname)) == -1 )
if ( (addr->s_addr = inet_addr(hostname)) == (in_addr_t)-1 )
{
#else
/* Use gethostbyname by default */