diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-11-25 17:18:03 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-25 17:18:54 -0500 |
commit | 7920ea55b8d994268d2b07f27316b0f34d8f27e5 (patch) | |
tree | 28a06534ce008544ca085688c463fa0c222721b3 /src/or/connection_or.c | |
parent | e5f2f10844dc2445f8cf2f0dc8ec92bc4ce65d63 (diff) | |
download | tor-7920ea55b8d994268d2b07f27316b0f34d8f27e5.tar.gz tor-7920ea55b8d994268d2b07f27316b0f34d8f27e5.zip |
Refactor tor_event_base_once to do what we actually want
This version avoids the timeout system entirely, gives a nicer
interface, and lets us manage allocation explicitly.
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index c0957161d8..cbdfa44581 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -1157,11 +1157,9 @@ connection_or_tls_renegotiated_cb(tor_tls_t *tls, void *_conn) * tor_tls_got_client_hello() when the server receives excess * renegotiation attempts; probably indicating a DoS. */ static void -connection_or_close_connection_cb(evutil_socket_t fd, short what, void *_conn) +connection_or_close_connection_cb(void *_conn) { or_connection_t *conn = _conn; - (void) what; - (void) fd; connection_stop_reading(TO_CONN(conn)); connection_mark_for_close(TO_CONN(conn)); |