aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-01-31 15:03:47 -0500
committerNick Mathewson <nickm@torproject.org>2018-01-31 15:03:47 -0500
commitb8ff7407a71fc51193dedb8cf952805c0fb3e774 (patch)
tree91c8ff6c31830554dbd2515b26997e01cfffff0f /src/or/directory.h
parent5b55e15707fd49079b9c127b339976c4f446e131 (diff)
downloadtor-b8ff7407a71fc51193dedb8cf952805c0fb3e774.tar.gz
tor-b8ff7407a71fc51193dedb8cf952805c0fb3e774.zip
remove the max_failures argument from download_status_is_ready.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index e223d51ae2..aa4d29a5bb 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -132,18 +132,14 @@ time_t download_status_increment_attempt(download_status_t *dls,
time(NULL))
void download_status_reset(download_status_t *dls);
-static int download_status_is_ready(download_status_t *dls, time_t now,
- int max_failures);
+static int download_status_is_ready(download_status_t *dls, time_t now);
time_t download_status_get_next_attempt_at(const download_status_t *dls);
/** Return true iff, as of <b>now</b>, the resource tracked by <b>dls</b> is
* ready to get its download reattempted. */
static inline int
-download_status_is_ready(download_status_t *dls, time_t now,
- int max_failures)
+download_status_is_ready(download_status_t *dls, time_t now)
{
- (void) max_failures; // 23814 REMOVE
-
/* dls wasn't reset before it was used */
if (dls->next_attempt_at == 0) {
download_status_reset(dls);