[tor-commits] [tor/master] Fix duplicate typedef in metrics_store_entry.h

nickm at torproject.org nickm at torproject.org
Wed Oct 28 20:38:27 UTC 2020


commit df1637600469390cbc9bb3889a7130bfe5e0159e
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Oct 28 16:36:14 2020 -0400

    Fix duplicate typedef in metrics_store_entry.h
    
    Fixes #40171. Bug not in any released Tor.
---
 src/lib/metrics/metrics_store_entry.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/metrics/metrics_store_entry.h b/src/lib/metrics/metrics_store_entry.h
index 6fff9d10eb..8e8a8f3917 100644
--- a/src/lib/metrics/metrics_store_entry.h
+++ b/src/lib/metrics/metrics_store_entry.h
@@ -17,7 +17,7 @@
 
 /** Metrics store entry. They reside in a metrics_store_t object and are
  * opaque to the outside world. */
-typedef struct metrics_store_entry_t {
+struct metrics_store_entry_t {
   /** Type of entry. */
   metrics_type_t type;
 
@@ -38,7 +38,7 @@ typedef struct metrics_store_entry_t {
     metrics_counter_t counter;
     metrics_gauge_t gauge;
   } u;
-} metrics_store_entry_t;
+};
 
 #endif /* METRICS_STORE_ENTRY_PRIVATE */
 



More information about the tor-commits mailing list