[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r10138: clean up some function argument names (tor/trunk/src/or)
Author: arma
Date: 2007-05-08 06:01:33 -0400 (Tue, 08 May 2007)
New Revision: 10138
Modified:
tor/trunk/src/or/circuitbuild.c
Log:
clean up some function argument names
Modified: tor/trunk/src/or/circuitbuild.c
===================================================================
--- tor/trunk/src/or/circuitbuild.c 2007-05-08 09:13:30 UTC (rev 10137)
+++ tor/trunk/src/or/circuitbuild.c 2007-05-08 10:01:33 UTC (rev 10138)
@@ -304,7 +304,7 @@
*/
origin_circuit_t *
circuit_establish_circuit(uint8_t purpose, int onehop_tunnel,
- extend_info_t *info,
+ extend_info_t *exit,
int need_uptime, int need_capacity, int internal)
{
origin_circuit_t *circ;
@@ -313,7 +313,7 @@
circ = origin_circuit_init(purpose, onehop_tunnel,
need_uptime, need_capacity, internal);
- if (onion_pick_cpath_exit(circ, info) < 0 ||
+ if (onion_pick_cpath_exit(circ, exit) < 0 ||
onion_populate_cpath(circ) < 0) {
circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_NOPATH);
return NULL;
@@ -1393,20 +1393,20 @@
* the caller will do this if it wants to.
*/
int
-circuit_append_new_exit(origin_circuit_t *circ, extend_info_t *info)
+circuit_append_new_exit(origin_circuit_t *circ, extend_info_t *exit)
{
cpath_build_state_t *state;
- tor_assert(info);
+ tor_assert(exit);
tor_assert(circ);
state = circ->build_state;
tor_assert(state);
if (state->chosen_exit)
extend_info_free(state->chosen_exit);
- state->chosen_exit = extend_info_dup(info);
+ state->chosen_exit = extend_info_dup(exit);
++circ->build_state->desired_path_len;
- onion_append_hop(&circ->cpath, info);
+ onion_append_hop(&circ->cpath, exit);
return 0;
}
@@ -1415,14 +1415,14 @@
* send the next extend cell to begin connecting to that hop.
*/
int
-circuit_extend_to_new_exit(origin_circuit_t *circ, extend_info_t *info)
+circuit_extend_to_new_exit(origin_circuit_t *circ, extend_info_t *exit)
{
int err_reason = 0;
- circuit_append_new_exit(circ, info);
+ circuit_append_new_exit(circ, exit);
circuit_set_state(TO_CIRCUIT(circ), CIRCUIT_STATE_BUILDING);
if ((err_reason = circuit_send_next_onion_skin(circ))<0) {
log_warn(LD_CIRC, "Couldn't extend circuit to new point '%s'.",
- info->nickname);
+ exit->nickname);
circuit_mark_for_close(TO_CIRCUIT(circ), -err_reason);
return -1;
}