diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-20 01:01:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-20 01:01:09 +0000 |
commit | f34d46e7ddcb7b145131ba0633d8a221078555ce (patch) | |
tree | 1aeea2f0095f4473304030f784d793075e8cfdc3 /src | |
parent | 7427cf5d5607f4ced7c76b02b55449a0d8f31333 (diff) | |
download | tor-f34d46e7ddcb7b145131ba0633d8a221078555ce.tar.gz tor-f34d46e7ddcb7b145131ba0633d8a221078555ce.zip |
similarly, don't throw around an int for the uint8_t circ->state
svn:r13608
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circuitlist.c | 2 | ||||
-rw-r--r-- | src/or/or.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index b1ad2e73db..f43579efbb 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -185,7 +185,7 @@ circuit_set_n_circid_orconn(circuit_t *circ, uint16_t id, /** Change the state of <b>circ</b> to <b>state</b>, adding it to or removing * it from lists as appropriate. */ void -circuit_set_state(circuit_t *circ, int state) +circuit_set_state(circuit_t *circ, uint8_t state) { tor_assert(circ); if (state == circ->state) diff --git a/src/or/or.h b/src/or/or.h index 59e60b51a1..ab07cd2996 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2554,7 +2554,7 @@ void circuit_set_p_circid_orconn(or_circuit_t *circ, uint16_t id, or_connection_t *conn); void circuit_set_n_circid_orconn(circuit_t *circ, uint16_t id, or_connection_t *conn); -void circuit_set_state(circuit_t *circ, int state); +void circuit_set_state(circuit_t *circ, uint8_t state); void circuit_close_all_marked(void); origin_circuit_t *origin_circuit_new(void); or_circuit_t *or_circuit_new(uint16_t p_circ_id, or_connection_t *p_conn); |