aboutsummaryrefslogtreecommitdiff
path: root/src/or/channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-10-10 21:25:52 -0400
committerNick Mathewson <nickm@torproject.org>2012-10-10 21:25:52 -0400
commitbd28322d3815a03ca04beb6d00052d613dbe226f (patch)
treee9ce3960612297ccd9b5eaad1bf0c6f1064db9de /src/or/channel.c
parentcf994f7ad758af01d7cb9318bcf5be7e36c5c71b (diff)
downloadtor-bd28322d3815a03ca04beb6d00052d613dbe226f.tar.gz
tor-bd28322d3815a03ca04beb6d00052d613dbe226f.zip
Remove variables; fix gcc 4.7 warnings
My GCC warns when variables are assigned to but never used. There were a few like that in the 6816/6465 branches.
Diffstat (limited to 'src/or/channel.c')
-rw-r--r--src/or/channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/channel.c b/src/or/channel.c
index 570bb37b14..b52db405e1 100644
--- a/src/or/channel.c
+++ b/src/or/channel.c
@@ -552,7 +552,7 @@ channel_add_to_digest_map(channel_t *chan)
static void
channel_remove_from_digest_map(channel_t *chan)
{
- channel_t *tmp, *head;
+ channel_t *tmp;
tor_assert(chan);
@@ -588,7 +588,6 @@ channel_remove_from_digest_map(channel_t *chan)
tmp = digestmap_get(channel_identity_map, chan->identity_digest);
if (tmp) {
/* Okay, it's here */
- head = tmp; /* Keep track of list head */
/* Look for this channel */
while (tmp && tmp != chan) {
tmp = tmp->next_with_same_id;