diff options
author | Roger Dingledine <arma@torproject.org> | 2004-05-09 16:33:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-05-09 16:33:04 +0000 |
commit | b384c5a18d7567d0bce7d6c14b820c61843ee987 (patch) | |
tree | df9f2eb9ca01360f962b1079bd276e878b5f6d07 /src/or/circuit.c | |
parent | d18528a2abb1b8b5af3d8e538ae07318ab479fa5 (diff) | |
download | tor-b384c5a18d7567d0bce7d6c14b820c61843ee987.tar.gz tor-b384c5a18d7567d0bce7d6c14b820c61843ee987.zip |
bugfix: do directory_send_command only after we've established a socket
also many comments, cleaning, etc
svn:r1823
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r-- | src/or/circuit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index 7643f15df0..93b13a8521 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -1,4 +1,4 @@ -/* Copyright 2001,2002,2003 Roger Dingledine, Matej Pfajfar. */ +/* Copyright 2001 Matej Pfajfar, 2001-2004 Roger Dingledine. */ /* See LICENSE for licensing information */ /* $Id$ */ @@ -37,7 +37,10 @@ char *circuit_state_to_string[] = { /********* END VARIABLES ************/ -void circuit_add(circuit_t *circ) { +/* add 'circ' to the global list of circuits. This is called only from + * within circuit_new. + */ +static void circuit_add(circuit_t *circ) { if(!global_circuitlist) { /* first one */ global_circuitlist = circ; circ->next = NULL; |