]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move the decl for tor_gettimofday_cache_clear to the right header
authorNick Mathewson <nickm@torproject.org>
Wed, 16 Mar 2011 21:54:43 +0000 (17:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 16 Mar 2011 21:54:48 +0000 (17:54 -0400)
src/or/relay.c
src/or/relay.h
src/or/routerparse.h

index 2510242256251f9bfdff740846b6a4b61173ef18..076b46b9347aa0e64be9a443cd49e304c51b033d 100644 (file)
@@ -52,9 +52,9 @@ static int circuit_consider_stop_edge_reading(circuit_t *circ,
                                               crypt_path_t *layer_hint);
 static int circuit_queue_streams_are_blocked(circuit_t *circ);
 
+/* XXXX023 move this all to compat_libevent */
 /** Cache the current hi-res time; the cache gets reset when libevent
  * calls us. */
-
 static struct timeval cached_time_hires = {0, 0};
 
 /** Stop reading on edge connections when we have this many cells
@@ -76,7 +76,7 @@ tor_gettimeofday_cached(struct timeval *tv)
 void
 tor_gettimeofday_cache_clear(void)
 {
-    cached_time_hires.tv_sec = 0;
+  cached_time_hires.tv_sec = 0;
 }
 
 /** Stats: how many relay cells have originated at this hop, or have
index dbba09239a62d3c681970ec204401a2e086b5172..f64752da5dea7c80f2b096cdc028e7aca249aab7 100644 (file)
@@ -64,5 +64,7 @@ void cell_ewma_set_scale_factor(or_options_t *options,
                                 networkstatus_t *consensus);
 void circuit_clear_cell_queue(circuit_t *circ, or_connection_t *orconn);
 
+void tor_gettimeofday_cache_clear(void);
+
 #endif
 
index 3499f18c7cd205b4aaaae4cc59a55b0ddd15c087..8b8cde25f686db49707eee3bccda4be7e09675de 100644 (file)
@@ -82,7 +82,5 @@ int rend_parse_introduction_points(rend_service_descriptor_t *parsed,
                                    size_t intro_points_encoded_size);
 int rend_parse_client_keys(strmap_t *parsed_clients, const char *str);
 
-void tor_gettimeofday_cache_clear(void);
-
 #endif