[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Move measured_bw_line_t into dirserv.h



commit e13f59416c8c97b540828b8a78cfc913a89ddf71
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Jun 15 12:54:55 2018 -0400

    Move measured_bw_line_t into dirserv.h
---
 src/or/dirserv.h | 8 ++++++++
 src/or/or.h      | 9 ---------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/or/dirserv.h b/src/or/dirserv.h
index f0b8913c5..b79963cf8 100644
--- a/src/or/dirserv.h
+++ b/src/or/dirserv.h
@@ -87,6 +87,14 @@ typedef struct spooled_resource_t {
   off_t cached_dir_offset;
 } spooled_resource_t;
 
+#ifdef DIRSERV_PRIVATE
+typedef struct measured_bw_line_t {
+  char node_id[DIGEST_LEN];
+  char node_hex[MAX_HEX_NICKNAME_LEN+1];
+  long int bw_kb;
+} measured_bw_line_t;
+#endif /* defined(DIRSERV_PRIVATE) */
+
 int connection_dirserv_flushed_some(dir_connection_t *conn);
 
 int dirserv_add_own_fingerprint(crypto_pk_t *pk);
diff --git a/src/or/or.h b/src/or/or.h
index 5b7d4344c..3d0611c63 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3894,15 +3894,6 @@ typedef enum {
   NS_V3_CONSENSUS_MICRODESC
 } routerstatus_format_type_t;
 
-#ifdef DIRSERV_PRIVATE
-typedef struct measured_bw_line_t {
-  char node_id[DIGEST_LEN];
-  char node_hex[MAX_HEX_NICKNAME_LEN+1];
-  long int bw_kb;
-} measured_bw_line_t;
-
-#endif /* defined(DIRSERV_PRIVATE) */
-
 /********************************* dirvote.c ************************/
 
 typedef struct vote_timing_t vote_timing_t;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits