mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Revert "Fix warnings found with clang-cl."
SWIG doesn't like enum : unsigned. Revert this until I can fix this in a way that swig likes. llvm-svn: 230531
This commit is contained in:
@@ -699,7 +699,7 @@ int Socket::SetOption(int level, int option_name, int option_value)
|
||||
uint16_t Socket::GetLocalPortNumber(const NativeSocket& socket)
|
||||
{
|
||||
// We bound to port zero, so we need to figure out which port we actually bound to
|
||||
if (IS_VALID_SOCKET(socket))
|
||||
if (socket >= 0)
|
||||
{
|
||||
SocketAddress sock_addr;
|
||||
socklen_t sock_addr_len = sock_addr.GetMaxLength ();
|
||||
@@ -730,7 +730,7 @@ std::string Socket::GetLocalIPAddress () const
|
||||
|
||||
uint16_t Socket::GetRemotePortNumber () const
|
||||
{
|
||||
if (IS_VALID_SOCKET(m_socket))
|
||||
if (m_socket >= 0)
|
||||
{
|
||||
SocketAddress sock_addr;
|
||||
socklen_t sock_addr_len = sock_addr.GetMaxLength ();
|
||||
@@ -743,7 +743,7 @@ uint16_t Socket::GetRemotePortNumber () const
|
||||
std::string Socket::GetRemoteIPAddress () const
|
||||
{
|
||||
// We bound to port zero, so we need to figure out which port we actually bound to
|
||||
if (IS_VALID_SOCKET(m_socket))
|
||||
if (m_socket >= 0)
|
||||
{
|
||||
SocketAddress sock_addr;
|
||||
socklen_t sock_addr_len = sock_addr.GetMaxLength ();
|
||||
|
||||
Reference in New Issue
Block a user