summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-10 14:28:04 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-10 14:28:04 +0000
commitc9af37d1ba3a3ca7dd844ca85ae220189ee09470 (patch)
tree29a69966bfda5a4c3d12ddd554b79a069218dfc9
parentfde4129ac3380491c442db4576cf124a5fafa7aa (diff)
downloadtor-c9af37d1ba3a3ca7dd844ca85ae220189ee09470.tar.gz
tor-c9af37d1ba3a3ca7dd844ca85ae220189ee09470.zip
Resolve FIXME items: make circuit_free_cpath_node static
svn:r2792
-rw-r--r--src/or/circuitlist.c5
-rw-r--r--src/or/or.h1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 7b9833bd2f..e93c390afd 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -28,6 +28,7 @@ const char *circuit_state_to_string[] = {
static void circuit_free(circuit_t *circ);
static void circuit_free_cpath(crypt_path_t *cpath);
+static void circuit_free_cpath_node(crypt_path_t *victim);
/** Add <b>circ</b> to the global list of circuits. This is called only from
* within circuit_new.
@@ -148,8 +149,8 @@ static void circuit_free_cpath(crypt_path_t *cpath) {
}
/** Deallocate space associated with the cpath node <b>victim</b>. */
-/* XXX rewrite so the call from circuitbuild isn't necessary */
-void circuit_free_cpath_node(crypt_path_t *victim) {
+static void
+circuit_free_cpath_node(crypt_path_t *victim) {
if(victim->f_crypto)
crypto_free_cipher_env(victim->f_crypto);
if(victim->b_crypto)
diff --git a/src/or/or.h b/src/or/or.h
index fdf6eb7938..f8eb0ab94a 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1034,7 +1034,6 @@ void onion_append_to_cpath(crypt_path_t **head_ptr, crypt_path_t *new_hop);
extern const char *circuit_state_to_string[];
void circuit_close_all_marked(void);
circuit_t *circuit_new(uint16_t p_circ_id, connection_t *p_conn);
-void circuit_free_cpath_node(crypt_path_t *victim);
circuit_t *circuit_get_by_circ_id_conn(uint16_t circ_id, connection_t *conn);
circuit_t *circuit_get_by_conn(connection_t *conn);
circuit_t *circuit_get_by_rend_query_and_purpose(const char *rend_query, uint8_t purpose);