summaryrefslogtreecommitdiff
path: root/src/feature/hs
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-16 13:27:42 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-16 13:27:42 -0400
commit68a0106bf32988e1e085bbeaf843d3525e154c95 (patch)
treecbd505e5303a06a3369772be570fd5592bade03d /src/feature/hs
parent7cd68b04def1c0256b98248d18680e4e4ed92071 (diff)
downloadtor-68a0106bf32988e1e085bbeaf843d3525e154c95.tar.gz
tor-68a0106bf32988e1e085bbeaf843d3525e154c95.zip
Run "make autostyle" and fix wide lines.
Diffstat (limited to 'src/feature/hs')
-rw-r--r--src/feature/hs/hs_dos.h2
-rw-r--r--src/feature/hs/hs_intropoint.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/hs/hs_dos.h b/src/feature/hs/hs_dos.h
index 6647b24be0..ccf4e27179 100644
--- a/src/feature/hs/hs_dos.h
+++ b/src/feature/hs/hs_dos.h
@@ -32,7 +32,7 @@ STATIC uint32_t get_intro2_enable_consensus_param(const networkstatus_t *ns);
STATIC uint32_t get_intro2_rate_consensus_param(const networkstatus_t *ns);
STATIC uint32_t get_intro2_burst_consensus_param(const networkstatus_t *ns);
-#endif /* define(TOR_UNIT_TESTS) */
+#endif /* defined(TOR_UNIT_TESTS) */
#endif /* defined(HS_DOS_PRIVATE) */
diff --git a/src/feature/hs/hs_intropoint.c b/src/feature/hs/hs_intropoint.c
index 90a7f28943..fe8486b1a6 100644
--- a/src/feature/hs/hs_intropoint.c
+++ b/src/feature/hs/hs_intropoint.c
@@ -200,7 +200,7 @@ cell_dos_extension_parameters_are_valid(uint64_t intro2_rate_per_sec,
"too small. Received value: %" PRIu64, intro2_rate_per_sec);
goto end;
}
-#endif
+#endif /* HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MIN > 0 */
/* Check that received value is not above maximum */
if (intro2_rate_per_sec > HS_CONFIG_V3_DOS_DEFENSE_RATE_PER_SEC_MAX) {
@@ -218,7 +218,7 @@ cell_dos_extension_parameters_are_valid(uint64_t intro2_rate_per_sec,
"too small. Received value: %" PRIu64, intro2_burst_per_sec);
goto end;
}
-#endif
+#endif /* HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MIN > 0 */
/* Check that received value is not above maximum */
if (intro2_burst_per_sec > HS_CONFIG_V3_DOS_DEFENSE_BURST_PER_SEC_MAX) {