aboutsummaryrefslogtreecommitdiff
path: root/src/lib/pubsub/pubsub_builder_st.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-01-15 10:46:01 -0500
committerNick Mathewson <nickm@torproject.org>2019-03-25 16:35:33 -0400
commita7681525ab670c2b7a783f9e1285bf9a8e97d1ea (patch)
tree52e35ff7af6efc0599de9815465610d5351f0341 /src/lib/pubsub/pubsub_builder_st.h
parent271a67182211a954dba1082739f8fe7daf421f6c (diff)
downloadtor-a7681525ab670c2b7a783f9e1285bf9a8e97d1ea.tar.gz
tor-a7681525ab670c2b7a783f9e1285bf9a8e97d1ea.zip
Add function to clear publish bindings.
When we clean up, we'd like to clear all the bindings that refer to a dispatch_t, so that they don't have dangling pointers to it.
Diffstat (limited to 'src/lib/pubsub/pubsub_builder_st.h')
-rw-r--r--src/lib/pubsub/pubsub_builder_st.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/pubsub/pubsub_builder_st.h b/src/lib/pubsub/pubsub_builder_st.h
index a1cc6e718b..cedeb02b16 100644
--- a/src/lib/pubsub/pubsub_builder_st.h
+++ b/src/lib/pubsub/pubsub_builder_st.h
@@ -91,12 +91,12 @@ typedef struct pubsub_type_cfg_t {
* The set of configuration requests for a dispatcher, as made by various
* subsystems.
**/
-typedef struct pubsub_items_t {
+struct pubsub_items_t {
/** List of pubsub_cfg_t. */
struct smartlist_t *items;
/** List of pubsub_type_cfg_t. */
struct smartlist_t *type_items;
-} pubsub_items_t;
+};
/**
* Type used to construct a dispatcher. We use this type to build up the
@@ -111,7 +111,7 @@ struct pubsub_builder_t {
int n_errors;
/** In-progress configuration that we're constructing, as a list of the
* requests that have been made. */
- pubsub_items_t *items;
+ struct pubsub_items_t *items;
/** In-progress configuration that we're constructing, in a form that can
* be converted to a dispatch_t. */
struct dispatch_cfg_t *cfg;