]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
ok, fair enough, some of these variables were time_t's after all
authorRoger Dingledine <arma@torproject.org>
Thu, 25 Dec 2008 20:16:22 +0000 (20:16 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 25 Dec 2008 20:16:22 +0000 (20:16 +0000)
svn:r17777

src/or/directory.c

index a062a6276a77470dcb0ef19579e202321227b020..5a1de4317a66f3d3578198d9820afa5e2e050c2b 100644 (file)
@@ -3339,13 +3339,13 @@ download_status_increment_failure(download_status_t *dls, int status_code,
   if (increment < INT_MAX)
     dls->next_attempt_at = now+increment;
   else
-    dls->next_attempt_at = INT_MAX;
+    dls->next_attempt_at = TIME_MAX;
 
   if (item) {
     if (dls->next_attempt_at == 0)
       log_debug(LD_DIR, "%s failed %d time(s); I'll try again immediately.",
                 item, (int)dls->n_download_failures);
-    else if (dls->next_attempt_at < INT_MAX)
+    else if (dls->next_attempt_at < TIME_MAX)
       log_debug(LD_DIR, "%s failed %d time(s); I'll try again in %d seconds.",
                 item, (int)dls->n_download_failures,
                 (int)(dls->next_attempt_at-now));