aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/circuitlist.c2
-rw-r--r--src/or/or.h2
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);