diff options
author | David Tardon <dtardon@redhat.com> | 2012-03-07 13:32:46 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-03-07 14:01:33 +0100 |
commit | c06ec2fdc21d4794535fb4d2358f65575ee9f2b7 (patch) | |
tree | da3c487453342a5a88256fd91b35207e7d417915 /sal | |
parent | WaE: redefined macro (diff) | |
download | core-c06ec2fdc21d4794535fb4d2358f65575ee9f2b7.tar.gz core-c06ec2fdc21d4794535fb4d2358f65575ee9f2b7.zip |
WaE: comparison between signed and unsigned integer expressions
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/socket.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx index fa6c34f5a8c5..4f150d0e6486 100644 --- a/sal/osl/w32/socket.cxx +++ b/sal/osl/w32/socket.cxx @@ -649,7 +649,7 @@ oslSocketAddr SAL_CALL osl_createInetSocketAddr ( rtl_uString *strDottedAddr, sal_Int32 Port) { - DWORD Addr; + sal_uInt32 Addr; rtl_String *pDottedAddr=NULL; rtl_uString2String( @@ -660,7 +660,7 @@ oslSocketAddr SAL_CALL osl_createInetSocketAddr ( rtl_string_release (pDottedAddr); oslSocketAddr pAddr = 0; - if(Addr != -1) + if(Addr != OSL_INADDR_NONE) { pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, htons( (sal_uInt16)Port), Addr ); } @@ -1412,7 +1412,7 @@ oslSocket SAL_CALL osl_acceptConnectionOnSocket ( Connection= accept(pSocket->m_Socket, &Addr, &AddrLen); OSL_ASSERT(AddrLen == sizeof(struct sockaddr)); - if(Connection != OSL_SOCKET_ERROR) + if(Connection != static_cast<SOCKET>(OSL_SOCKET_ERROR)) *ppAddr= __osl_createSocketAddrFromSystem(&Addr); else *ppAddr = NULL; @@ -1424,7 +1424,7 @@ oslSocket SAL_CALL osl_acceptConnectionOnSocket ( } /* accept failed? */ - if(Connection == OSL_SOCKET_ERROR) + if(Connection == static_cast<SOCKET>(OSL_SOCKET_ERROR)) return ((oslSocket)NULL); /* alloc memory */ |