diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-11-27 11:39:03 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-11-27 11:39:03 -0500 |
commit | a45aacd2e292ea0522313e430e5ff8c70fadf8f7 (patch) | |
tree | ebe95f24c3d17c5f16f80ac851ac0ac513536073 /src/common | |
parent | 5665775e8c822d45282d1d56a01a0f5883c7b070 (diff) | |
download | tor-a45aacd2e292ea0522313e430e5ff8c70fadf8f7.tar.gz tor-a45aacd2e292ea0522313e430e5ff8c70fadf8f7.zip |
Use uint16_t, not in_port_t (which does not exist on Windows). See #17638.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index bd59e0f5a5..9e76592615 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1509,9 +1509,9 @@ tor_ersatz_socketpair(int family, int type, int protocol, tor_socket_t fd[2]) tor_socket_t acceptor = TOR_INVALID_SOCKET; tor_addr_t listen_tor_addr; struct sockaddr listen_addr; - in_port_t listen_port = 0; + uint16_t listen_port = 0; tor_addr_t connect_tor_addr; - in_port_t connect_port = 0; + uint16_t connect_port = 0; struct sockaddr connect_addr; socklen_t size; int saved_errno = -1; |