aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 21:54:44 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 21:54:44 +0000
commit36bbab2f2bd8fe8902f4852c240a09de13419325 (patch)
tree72dd0257b16d39c64f01f6b38a742ae507cdc8d9 /src/or
parentf8771625c6329b4de302f9e213177d2512b13c3f (diff)
downloadtor-36bbab2f2bd8fe8902f4852c240a09de13419325.tar
tor-36bbab2f2bd8fe8902f4852c240a09de13419325.tar.gz
Fix in warning fix
svn:r2617
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rephist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 790ad4b1c..dc980e999 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -237,7 +237,7 @@ void rep_hist_dump_stats(time_t now, int severity)
double uptime;
char buffer[2048];
size_t len;
- int r;
+ int ret;
unsigned long upt, downt;
routerinfo_t *r;
@@ -281,13 +281,13 @@ void rep_hist_dump_stats(time_t now, int severity)
link_history = (link_history_t*) link_history_p;
- r = tor_snprintf(buffer+len, 2048-len, "%s(%ld/%ld); ", name2,
+ ret = tor_snprintf(buffer+len, 2048-len, "%s(%ld/%ld); ", name2,
link_history->n_extend_ok,
link_history->n_extend_ok+link_history->n_extend_fail);
- if (r<0)
+ if (ret<0)
break;
else
- len += r;
+ len += ret;
}
log(severity, "%s", buffer);
}