aboutsummaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2012-10-08 20:14:04 -0700
committerAndrea Shepard <andrea@torproject.org>2012-10-08 20:14:04 -0700
commitd61e58e1ba594c57afdb4bf49169f59b0a56a7f4 (patch)
tree3f0c6ac896fb786b78e0dd34f24d4552254a652d /src/or/channel.c
parent8a41dd20cb43b16548b49f9eff581dba0ed9a9a1 (diff)
downloadtor-d61e58e1ba594c57afdb4bf49169f59b0a56a7f4.tar.gz
tor-d61e58e1ba594c57afdb4bf49169f59b0a56a7f4.zip
s/channel_request_close()/channel_mark_for_close()/g for consistency
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index 469dc5d617..5b40028a67 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -772,7 +772,7 @@ channel_force_free(channel_t *chan)
if (chan->u.listener.incoming_list) {
SMARTLIST_FOREACH_BEGIN(chan->u.listener.incoming_list,
channel_t *, qchan) {
- channel_request_close(qchan);
+ channel_mark_for_close(qchan);
} SMARTLIST_FOREACH_END(qchan);
smartlist_free(chan->u.listener.incoming_list);
@@ -965,7 +965,7 @@ channel_set_cell_handlers(channel_t *chan,
}
/**
- * Request a channel be closed
+ * Mark a channel to be closed
*
* This function tries to close a channel_t; it will go into the CLOSING
* state, and eventually the lower layer should put it into the CLOSED or
@@ -975,7 +975,7 @@ channel_set_cell_handlers(channel_t *chan,
*/
void
-channel_request_close(channel_t *chan)
+channel_mark_for_close(channel_t *chan)
{
tor_assert(chan != NULL);
tor_assert(chan->close != NULL);
@@ -2419,7 +2419,7 @@ channel_free_all(void)
* and allocate that again on close.
*/
channel_unregister(curr);
- channel_request_close(curr);
+ channel_mark_for_close(curr);
channel_force_free(curr);
} SMARTLIST_FOREACH_END(curr);
@@ -2442,7 +2442,7 @@ channel_free_all(void)
* and allocate that again on close.
*/
channel_unregister(curr);
- channel_request_close(curr);
+ channel_mark_for_close(curr);
channel_force_free(curr);
} SMARTLIST_FOREACH_END(curr);
@@ -2464,7 +2464,7 @@ channel_free_all(void)
if (!(curr->state == CHANNEL_STATE_CLOSING ||
curr->state == CHANNEL_STATE_CLOSED ||
curr->state == CHANNEL_STATE_ERROR)) {
- channel_request_close(curr);
+ channel_mark_for_close(curr);
}
channel_force_free(curr);
} SMARTLIST_FOREACH_END(curr);