diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-18 15:07:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-10-14 15:25:16 -0400 |
commit | 370d9922a4e3cb24a5ff093cadc3098771cab957 (patch) | |
tree | 10e57264b79b7b80ef7810b745ebc2a4c2fa3cfe /src/core | |
parent | 965549aa07d94a9f9e510cdb7a215bf9a3ed7bb8 (diff) | |
download | tor-370d9922a4e3cb24a5ff093cadc3098771cab957.tar.gz tor-370d9922a4e3cb24a5ff093cadc3098771cab957.zip |
Use the correct function signatures in test_relaycell.c
This is now officially an antipattern: please let's never copy a
function declaration in two places again. That's what headers are
for.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/connection_edge.c | 5 | ||||
-rw-r--r-- | src/core/or/connection_edge.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c index 35e68485b8..ab08e99b1e 100644 --- a/src/core/or/connection_edge.c +++ b/src/core/or/connection_edge.c @@ -155,11 +155,6 @@ static int connection_ap_process_natd(entry_connection_t *conn); static int connection_exit_connect_dir(edge_connection_t *exitconn); static int consider_plaintext_ports(entry_connection_t *conn, uint16_t port); static int connection_ap_supports_optimistic_data(const entry_connection_t *); -STATIC void connection_half_edge_add(const edge_connection_t *conn, - origin_circuit_t *circ); -STATIC half_edge_t *connection_half_edge_find_stream_id( - const smartlist_t *half_conns, - streamid_t stream_id); /** Convert a connection_t* to an edge_connection_t*; assert if the cast is * invalid. */ diff --git a/src/core/or/connection_edge.h b/src/core/or/connection_edge.h index 1348dd49f9..25e04f8416 100644 --- a/src/core/or/connection_edge.h +++ b/src/core/or/connection_edge.h @@ -254,6 +254,12 @@ STATIC void connection_ap_handshake_rewrite(entry_connection_t *conn, rewrite_result_t *out); STATIC int connection_ap_process_http_connect(entry_connection_t *conn); +struct half_edge_t; +STATIC void connection_half_edge_add(const edge_connection_t *conn, + origin_circuit_t *circ); +STATIC struct half_edge_t *connection_half_edge_find_stream_id( + const smartlist_t *half_conns, + streamid_t stream_id); #endif /* defined(CONNECTION_EDGE_PRIVATE) */ #endif /* !defined(TOR_CONNECTION_EDGE_H) */ |