[tor-commits] [tor/master] Add some missing includes and struct declarations.
nickm at torproject.org
nickm at torproject.org
Wed Jul 18 19:12:41 UTC 2018
commit 23811052fe287bafd27f590a02658ff4c588a8a9
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Jul 18 15:12:18 2018 -0400
Add some missing includes and struct declarations.
---
src/feature/dirauth/dirvote.c | 1 +
src/feature/dircache/dirserv.h | 4 +++-
src/test/test_dir.c | 1 +
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index 753c42b80..2a48a3283 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -15,6 +15,7 @@
#include "feature/nodelist/parsecommon.h"
#include "core/or/policies.h"
#include "core/or/protover.h"
+#include "core/or/tor_version_st.h"
#include "feature/stats/rephist.h"
#include "feature/relay/router.h"
#include "feature/relay/routerkeys.h"
diff --git a/src/feature/dircache/dirserv.h b/src/feature/dircache/dirserv.h
index d399c4109..b1b8cee5f 100644
--- a/src/feature/dircache/dirserv.h
+++ b/src/feature/dircache/dirserv.h
@@ -180,7 +180,9 @@ char *routerstatus_format_entry(
void dirserv_free_all(void);
void cached_dir_decref(cached_dir_t *d);
cached_dir_t *new_cached_dir(char *s, time_t published);
-char *format_recommended_version_list(const config_line_t *line, int warn);
+struct config_line_t;
+char *format_recommended_version_list(const struct config_line_t *line,
+ int warn);
int validate_recommended_package_line(const char *line);
int dirserv_query_measured_bw_cache_kb(const char *node_id,
long *bw_out,
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 4396d819c..92917723e 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -23,6 +23,7 @@
#include "app/config/confparse.h"
#include "app/config/config.h"
#include "feature/control/control.h"
+#include "lib/encoding/confline.h"
#include "lib/crypt_ops/crypto_ed25519.h"
#include "lib/crypt_ops/crypto_format.h"
#include "lib/crypt_ops/crypto_rand.h"
More information about the tor-commits
mailing list