summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-06-05 01:50:35 +0000
committerNick Mathewson <nickm@torproject.org>2004-06-05 01:50:35 +0000
commit17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8 (patch)
treea98d7127db6e9a733e0978668f539d211b2638c5 /src/or/connection.c
parent42569ffd0fc659d81093bc1d7b0fe5171e5738cf (diff)
downloadtor-17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8.tar.gz
tor-17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8.zip
Make tor build on win32 again; handle locking for server
svn:r1948
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index b7d2c52e04..aaafbe3068 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -333,7 +333,7 @@ static int connection_create_listener(const char *bindaddress, uint16_t bindport
memset(&bindaddr,0,sizeof(struct sockaddr_in));
bindaddr.sin_family = AF_INET;
- bindaddr.sin_port = htons(usePort);
+ bindaddr.sin_port = htons((uint16_t) usePort);
if(tor_lookup_hostname(hostname, &(bindaddr.sin_addr.s_addr)) != 0) {
log_fn(LOG_WARN,"Can't resolve BindAddress %s",hostname);
tor_free(hostname);