summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-07-23 15:58:30 +0000
committerNick Mathewson <nickm@torproject.org>2008-07-23 15:58:30 +0000
commit2748afe60961596791bceb842dce2385c5b4db7e (patch)
treee3538b4e13a1a62d607faba062cc21f158017f56 /src/or/circuitbuild.c
parent15b2b8bd69ff30a85c2364bcc528090b36aa9286 (diff)
downloadtor-2748afe60961596791bceb842dce2385c5b4db7e.tar.gz
tor-2748afe60961596791bceb842dce2385c5b4db7e.zip
r17322@aud-055: nickm | 2008-07-23 16:50:50 +0200
Make circid_t and streamid_t get used instead of uint16_t; it is possible we will soon want to make circid_t change to uint32_t. svn:r16155
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 1b08637e60..89a03b855e 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -69,12 +69,12 @@ static time_t start_of_month(time_t when);
*
* Return it, or 0 if can't get a unique circ_id.
*/
-static uint16_t
+static circid_t
get_unique_circ_id_by_conn(or_connection_t *conn)
{
- uint16_t test_circ_id;
- uint16_t attempts=0;
- uint16_t high_bit;
+ circid_t test_circ_id;
+ circid_t attempts=0;
+ circid_t high_bit;
tor_assert(conn);
if (conn->circ_id_type == CIRC_ID_TYPE_NEITHER) {
@@ -488,7 +488,7 @@ circuit_deliver_create_cell(circuit_t *circ, uint8_t cell_type,
const char *payload)
{
cell_t cell;
- uint16_t id;
+ circid_t id;
tor_assert(circ);
tor_assert(circ->n_conn);