summaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-12-02 16:09:16 -0500
committerNick Mathewson <nickm@torproject.org>2011-12-02 16:09:16 -0500
commit2b5a0356047e7622c66e434cd8ac4a7689d4cc28 (patch)
tree9d655dee04ceb315f78e483bd15958fd44673373 /src/common/compat.h
parentb7015603fa014c91056fa46cb012976a9e166cd3 (diff)
downloadtor-2b5a0356047e7622c66e434cd8ac4a7689d4cc28.tar.gz
tor-2b5a0356047e7622c66e434cd8ac4a7689d4cc28.zip
tor_accept_socket() should take tor_addr_t for listener arg
Fixes bug 4535; bugfix on 0.2.2.28-beta; found by "troll_un"
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 011b9c8674..3e1b5b8263 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -404,7 +404,7 @@ typedef int socklen_t;
int tor_close_socket(tor_socket_t s);
tor_socket_t tor_open_socket(int domain, int type, int protocol);
-tor_socket_t tor_accept_socket(int sockfd, struct sockaddr *addr,
+tor_socket_t tor_accept_socket(tor_socket_t sockfd, struct sockaddr *addr,
socklen_t *len);
int get_n_open_sockets(void);