[or-cvs] r13608: similarly, don't throw around an int for the uint8_t circ->s (tor/trunk/src/or)

arma at seul.org arma at seul.org
Wed Feb 20 01:01:09 UTC 2008


Author: arma
Date: 2008-02-19 20:01:09 -0500 (Tue, 19 Feb 2008)
New Revision: 13608

Modified:
   tor/trunk/src/or/circuitlist.c
   tor/trunk/src/or/or.h
Log:
similarly, don't throw around an int for the uint8_t circ->state


Modified: tor/trunk/src/or/circuitlist.c
===================================================================
--- tor/trunk/src/or/circuitlist.c	2008-02-20 00:57:37 UTC (rev 13607)
+++ tor/trunk/src/or/circuitlist.c	2008-02-20 01:01:09 UTC (rev 13608)
@@ -185,7 +185,7 @@
 /** 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)

Modified: tor/trunk/src/or/or.h
===================================================================
--- tor/trunk/src/or/or.h	2008-02-20 00:57:37 UTC (rev 13607)
+++ tor/trunk/src/or/or.h	2008-02-20 01:01:09 UTC (rev 13608)
@@ -2554,7 +2554,7 @@
                                  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);



More information about the tor-commits mailing list