diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-30 11:25:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-30 15:00:07 -0400 |
commit | 853942b71e1a397cbe025dd9c101ccbab4bdaa11 (patch) | |
tree | 7cb7e34056fdb92b7903b1e6f89068991b58ddf9 /src/feature/dirauth/recommend_pkg.h | |
parent | 847fc3280d4a77859c28f4c6c91c2cdf863c5c43 (diff) | |
download | tor-853942b71e1a397cbe025dd9c101ccbab4bdaa11.tar.gz tor-853942b71e1a397cbe025dd9c101ccbab4bdaa11.zip |
Make the recommend_pkg file dirauth-only.
Diffstat (limited to 'src/feature/dirauth/recommend_pkg.h')
-rw-r--r-- | src/feature/dirauth/recommend_pkg.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/feature/dirauth/recommend_pkg.h b/src/feature/dirauth/recommend_pkg.h index 8200d78f72..1f97d50177 100644 --- a/src/feature/dirauth/recommend_pkg.h +++ b/src/feature/dirauth/recommend_pkg.h @@ -12,6 +12,18 @@ #ifndef TOR_RECOMMEND_PKG_H #define TOR_RECOMMEND_PKG_H +#ifdef HAVE_MODULE_DIRAUTH int validate_recommended_package_line(const char *line); +#else + +static inline int +validate_recommended_package_line(const char *line) +{ + (void) line; + return 0; +} + +#endif + #endif |