summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-01-03 09:13:00 -0500
committerNick Mathewson <nickm@torproject.org>2018-01-03 09:13:00 -0500
commit1bc95633fbd9c27db87d81593242e85d08afe116 (patch)
tree33749e7b0877764ad1d276ece69b97cb15de8df7 /src/test
parent451c852a0f75fe9ac6935851e763a948c1c5b197 (diff)
downloadtor-1bc95633fbd9c27db87d81593242e85d08afe116.tar.gz
tor-1bc95633fbd9c27db87d81593242e85d08afe116.zip
Fix some shadowed-global warnings.
These are all about local variables shadowing global functions. That isn't normally a problem, but at least one compiler we care about seems to treat this as a case of -Wshadow violation, so let's fix it. Fixes bug 24634; bugfix on 0.3.2.1-alpha.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_hs_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c
index b9b76d15bd..21daa58abd 100644
--- a/src/test/test_hs_common.c
+++ b/src/test/test_hs_common.c
@@ -971,12 +971,12 @@ helper_init_service(time_t now)
/* Helper function to set the RFC 1123 time string into t. */
static void
-set_consensus_times(const char *time, time_t *t)
+set_consensus_times(const char *timestr, time_t *t)
{
- tt_assert(time);
+ tt_assert(timestr);
tt_assert(t);
- int ret = parse_rfc1123_time(time, t);
+ int ret = parse_rfc1123_time(timestr, t);
tt_int_op(ret, OP_EQ, 0);
done: