aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-22 16:28:12 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-22 16:28:12 +0000
commit25c6ff6f559a177786591fff09750eef40e0600b (patch)
treebaaddd11f2097104f8dc50978a82cf44ae5b1948 /src/or/main.c
parent15d3c285034c105f826481f9e104a268651492bb (diff)
downloadtor-25c6ff6f559a177786591fff09750eef40e0600b.tar
tor-25c6ff6f559a177786591fff09750eef40e0600b.tar.gz
Support 64-bit time_t. Patch from Matthias Drochner. Partial backport candidate.
svn:r18234
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 353082749..dd15024b7 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1138,7 +1138,7 @@ second_elapsed_callback(int fd, short event, void *args)
* could use libevent's timers for this rather than checking the current
* time against a bunch of timeouts every second. */
static struct timeval one_second;
- static long current_second = 0;
+ static time_t current_second = 0;
time_t now;
size_t bytes_written;
size_t bytes_read;