diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-04-02 22:11:24 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-04-02 22:11:24 +0000 |
commit | 055ee7c3231c8e0e2b645f318e990e4200bb5fbf (patch) | |
tree | b3bca05da72a3d932bb1422015f5b4992f13b357 /src/or/or.h | |
parent | 4a90d3722969f6b0c8b7a4507af0889594fbed13 (diff) | |
download | tor-055ee7c3231c8e0e2b645f318e990e4200bb5fbf.tar tor-055ee7c3231c8e0e2b645f318e990e4200bb5fbf.tar.gz |
Give better warnings if connection_close_unattached_ap gets called twice or called on a marked connection; rename it to connection_mark_unattached_ap.
svn:r3990
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 6984ddd72..d61cde47f 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1324,7 +1324,12 @@ int connection_or_nonopen_was_started_here(connection_t *conn); /********************************* connection_edge.c ***************************/ -void connection_close_unattached_ap(connection_t *conn, int endreason); +#define connection_mark_unattached_ap(conn, endreason) \ + do { _connection_mark_unattached_ap(conn, endreason, __LINE__, _SHORT_FILE_);\ + } while (0) + +void _connection_mark_unattached_ap(connection_t *conn, int endreason, + int line, const char *file); int connection_edge_reached_eof(connection_t *conn); int connection_edge_process_inbuf(connection_t *conn, int package_partial); int connection_edge_destroy(uint16_t circ_id, connection_t *conn); |