]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix another duplicate typedef.
authorNick Mathewson <nickm@torproject.org>
Mon, 2 Nov 2020 12:15:10 +0000 (07:15 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 2 Nov 2020 12:15:10 +0000 (07:15 -0500)
Fixes #40177; bugfix on 0.4.5.1-alpha.

changes/bug40177 [new file with mode: 0644]
src/lib/metrics/metrics_store.c

diff --git a/changes/bug40177 b/changes/bug40177
new file mode 100644 (file)
index 0000000..b08be64
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (compilation):
+    - Remove a duplicate typedef in metrics_store.c.  Fixes bug 40177;
+      bugfix on 0.4.5.1-alpha.
index 4f048e103df0846f56c9a5f9504892d7e525c5ee..abc093a56497a69d63d665b2c54e4bd892812208 100644 (file)
@@ -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 *);