aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-05-01 20:55:31 +0000
committerNick Mathewson <nickm@torproject.org>2004-05-01 20:55:31 +0000
commit6fa2ded74c632ea6f408ffbcac49f4e921d9b802 (patch)
tree470ef1bdc6f7daf764784864f05e385c46dc5726 /src/or/connection.c
parent908ccb9dcdff19c6015a31726d2db5db5fef3ede (diff)
downloadtor-6fa2ded74c632ea6f408ffbcac49f4e921d9b802.tar
tor-6fa2ded74c632ea6f408ffbcac49f4e921d9b802.tar.gz
Fix windows compile
svn:r1757
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 690f44261..074bd8c82 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -279,13 +279,13 @@ int connection_create_listener(char *bindaddress, uint16_t bindport, int type) {
if(bind(s,(struct sockaddr *)&bindaddr,sizeof(bindaddr)) < 0) {
log_fn(LOG_WARN,"Could not bind to port %u: %s",bindport,
- strerror(tor_socket_errno()));
+ strerror(tor_socket_errno(s)));
return -1;
}
if(listen(s,SOMAXCONN) < 0) {
log_fn(LOG_WARN,"Could not listen on port %u: %s",bindport,
- strerror(tor_socket_errno()));
+ strerror(tor_socket_errno(s)));
return -1;
}
@@ -313,9 +313,6 @@ static int connection_handle_listener_read(connection_t *conn, int new_type) {
connection_t *newconn;
struct sockaddr_in remote; /* information about the remote peer when connecting to other routers */
int remotelen = sizeof(struct sockaddr_in); /* length of the remote address */
-#ifdef MS_WINDOWS
- int e;
-#endif
news = accept(conn->s,(struct sockaddr *)&remote,&remotelen);
if (news == -1) { /* accept() error */