diff options
author | George Kadianakis <desnacked@riseup.net> | 2016-12-06 14:34:48 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-16 11:06:22 -0500 |
commit | 7ab2678074e5d49628d948fadb80c5904950236c (patch) | |
tree | 2f0b34c15bdb07481c5e20524c25c46f98a0deee /src/or/circuitlist.c | |
parent | 68679504323b0a676a446b8fb34b976c9dc66b4f (diff) | |
download | tor-7ab2678074e5d49628d948fadb80c5904950236c.tar.gz tor-7ab2678074e5d49628d948fadb80c5904950236c.zip |
Trivial documentation improvements.
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index b25f817d91..ab38b54985 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -562,7 +562,6 @@ circuit_get_global_list,(void)) return global_circuitlist; } -/** */ /** Return a pointer to the global list of origin circuits. */ smartlist_t * circuit_get_global_origin_circuit_list(void) @@ -1758,17 +1757,17 @@ circuit_find_circuits_to_upgrade_from_guard_wait(void) if (! circuits_pending_other_guards || smartlist_len(circuits_pending_other_guards)==0) return NULL; - /* Only if we have some origin circuiuts should we run the algorithm. - */ + /* Only if we have some origin circuits should we run the algorithm. */ if (!global_origin_circuit_list) return NULL; /* Okay; we can pass our circuit list to entrynodes.c.*/ smartlist_t *result = smartlist_new(); - int r = entry_guards_upgrade_waiting_circuits(get_guard_selection_info(), - global_origin_circuit_list, - result); - if (r && smartlist_len(result)) { + int circuits_upgraded = entry_guards_upgrade_waiting_circuits( + get_guard_selection_info(), + global_origin_circuit_list, + result); + if (circuits_upgraded && smartlist_len(result)) { return result; } else { smartlist_free(result); |