diff options
Diffstat (limited to 'lldb/source')
4 files changed, 11 insertions, 11 deletions
diff --git a/lldb/source/Core/ConnectionFileDescriptor.cpp b/lldb/source/Core/ConnectionFileDescriptor.cpp index d711ef8e185..3fb43cfa02c 100644 --- a/lldb/source/Core/ConnectionFileDescriptor.cpp +++ b/lldb/source/Core/ConnectionFileDescriptor.cpp @@ -1675,7 +1675,7 @@ ConnectionFileDescriptor::SetSocketReceiveTimeout (uint32_t timeout_usec) return false; } -in_port_t +uint16_t ConnectionFileDescriptor::GetSocketPort (int fd) { // We bound to port zero, so we need to figure out which port we actually bound to @@ -1691,7 +1691,7 @@ ConnectionFileDescriptor::GetSocketPort (int fd) // If the read file descriptor is a socket, then return // the port number that is being used by the socket. -in_port_t +uint16_t ConnectionFileDescriptor::GetReadPort () const { return ConnectionFileDescriptor::GetSocketPort (m_fd_recv); @@ -1699,16 +1699,16 @@ ConnectionFileDescriptor::GetReadPort () const // If the write file descriptor is a socket, then return // the port number that is being used by the socket. -in_port_t +uint16_t ConnectionFileDescriptor::GetWritePort () const { return ConnectionFileDescriptor::GetSocketPort (m_fd_send); } -in_port_t +uint16_t ConnectionFileDescriptor::GetBoundPort (uint32_t timeout_sec) { - in_port_t bound_port = 0; + uint16_t bound_port = 0; if (timeout_sec == UINT32_MAX) m_port_predicate.WaitForValueNotEqualTo (0, bound_port); else diff --git a/lldb/source/Host/common/SocketAddress.cpp b/lldb/source/Host/common/SocketAddress.cpp index f5a58a6d208..5d6243e0961 100644 --- a/lldb/source/Host/common/SocketAddress.cpp +++ b/lldb/source/Host/common/SocketAddress.cpp @@ -123,7 +123,7 @@ SocketAddress::SetFamily (sa_family_t family) #endif } -in_port_t +uint16_t SocketAddress::GetPort () const { switch (GetFamily()) @@ -135,7 +135,7 @@ SocketAddress::GetPort () const } bool -SocketAddress::SetPort (in_port_t port) +SocketAddress::SetPort (uint16_t port) { switch (GetFamily()) { @@ -233,7 +233,7 @@ SocketAddress::getaddrinfo (const char *host, bool -SocketAddress::SetToLocalhost (sa_family_t family, in_port_t port) +SocketAddress::SetToLocalhost (sa_family_t family, uint16_t port) { switch (family) { @@ -261,7 +261,7 @@ SocketAddress::SetToLocalhost (sa_family_t family, in_port_t port) } bool -SocketAddress::SetToAnyAddress (sa_family_t family, in_port_t port) +SocketAddress::SetToAnyAddress (sa_family_t family, uint16_t port) { switch (family) { diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 04de58bcd4c..5966ccadffc 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -542,7 +542,7 @@ GDBRemoteCommunication::CheckForPacket (const uint8_t *src, size_t src_len, Stri } Error -GDBRemoteCommunication::StartListenThread (const char *hostname, in_port_t port) +GDBRemoteCommunication::StartListenThread (const char *hostname, uint16_t port) { Error error; if (IS_VALID_LLDB_HOST_THREAD(m_listen_thread)) diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h index a21679e51dc..fb1955e3f74 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h @@ -258,7 +258,7 @@ protected: lldb_private::Error StartListenThread (const char *hostname = "localhost", - in_port_t port = 0); + uint16_t port = 0); bool JoinListenThread (); |