aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-22 16:37:09 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-22 16:37:09 +0000
commit2451479cbccbbaeea154c80c08fe2e08142cd425 (patch)
tree7e85323f504cfabba938604076ad79b275b3501f /src/or
parent55de7d1f5763df156e39e45d1abd56e43bab72e2 (diff)
downloadtor-2451479cbccbbaeea154c80c08fe2e08142cd425.tar.gz
tor-2451479cbccbbaeea154c80c08fe2e08142cd425.zip
Backport the trivial parts of r18234, especially the one that makes compilation not fail on dev netbsd.
svn:r18236
Diffstat (limited to 'src/or')
-rw-r--r--src/or/circuituse.c2
-rw-r--r--src/or/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 083f21567e..6710699c92 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -472,7 +472,7 @@ circuit_predict_and_launch_new(void)
void
circuit_build_needed_circs(time_t now)
{
- static long time_to_new_circuit = 0;
+ static time_t time_to_new_circuit = 0;
or_options_t *options = get_options();
/* launch a new circ for any pending streams that need one */
diff --git a/src/or/main.c b/src/or/main.c
index 165babaa75..e4d84ac99c 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1178,7 +1178,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;
struct timeval now;
size_t bytes_written;
size_t bytes_read;