summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-11-02 07:15:10 -0500
committerNick Mathewson <nickm@torproject.org>2020-11-02 07:15:10 -0500
commit7a75a1064fe41847b6c42c1d995a27f08987aa93 (patch)
tree2c95686ffae38e514e894f7f19f1aa690b4b1f14 /src/lib
parentaa85284038fbb145ebd73abb7b995f31024bb8aa (diff)
downloadtor-7a75a1064fe41847b6c42c1d995a27f08987aa93.tar.gz
tor-7a75a1064fe41847b6c42c1d995a27f08987aa93.zip
Fix another duplicate typedef.
Fixes #40177; bugfix on 0.4.5.1-alpha.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/metrics/metrics_store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/metrics/metrics_store.c b/src/lib/metrics/metrics_store.c
index 4f048e103d..abc093a564 100644
--- a/src/lib/metrics/metrics_store.c
+++ b/src/lib/metrics/metrics_store.c
@@ -22,7 +22,7 @@
#include "lib/metrics/prometheus.h"
/** A metric store which contains a map of entries. */
-typedef struct metrics_store_t {
+struct metrics_store_t {
/** Indexed by metrics entry name. An entry is a smartlist_t of one or more
* metrics_store_entry_t allowing for multiple metrics of the same name.
*
@@ -31,7 +31,7 @@ typedef struct metrics_store_t {
* One example is an onion service with multiple ports, the port specific
* metrics will have a port value as a label. */
strmap_t *entries;
-} metrics_store_t;
+};
/** Function pointer to the format function of a specific driver. */
typedef void (fmt_driver_fn_t)(const metrics_store_entry_t *, buf_t *);