aboutsummaryrefslogtreecommitdiff
path: root/src/or/status.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-06-08 21:10:43 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-06-08 21:11:42 +0200
commit3033f8459b332c934b3098ee15c3aa04e3545484 (patch)
tree724c1abe2f2fce3c5ba3488467e05340d1b559d8 /src/or/status.c
parent3bf808c3410a18508a70737329b0930f1693e262 (diff)
downloadtor-3033f8459b332c934b3098ee15c3aa04e3545484.tar
tor-3033f8459b332c934b3098ee15c3aa04e3545484.tar.gz
Remove a dead variable in the heartbeat code
Diffstat (limited to 'src/or/status.c')
-rw-r--r--src/or/status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/status.c b/src/or/status.c
index c8bc0705d..64e30222a 100644
--- a/src/or/status.c
+++ b/src/or/status.c
@@ -84,7 +84,6 @@ log_heartbeat(time_t now)
char *bw_rcvd = NULL;
char *uptime = NULL;
const routerinfo_t *me;
- const node_t *myself;
or_options_t *options = get_options();
(void)now;
@@ -94,7 +93,7 @@ log_heartbeat(time_t now)
if (!(me = router_get_my_routerinfo()))
return -1; /* Something stinks, we won't even attempt this. */
else
- if (!(myself = node_get_by_id(me->cache_info.identity_digest)))
+ if (!node_get_by_id(me->cache_info.identity_digest))
log_fn(LOG_NOTICE, LD_HEARTBEAT, "Heartbeat: It seems like we are not "
"in the cached consensus.");
}