summaryrefslogtreecommitdiff
path: root/src/feature/dirclient
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-10 10:36:51 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-06 14:54:04 -0500
commit60f01da78eaab9d036ac4af0d6bea27eb210c7cb (patch)
tree40ad9f0d01e8e46d825eb3d5e8de760daf8c2db8 /src/feature/dirclient
parente9b663beaf153359033d78934cdf8f3d8bb9f2d9 (diff)
downloadtor-60f01da78eaab9d036ac4af0d6bea27eb210c7cb.tar.gz
tor-60f01da78eaab9d036ac4af0d6bea27eb210c7cb.zip
Use smaller CPP error messages
Clang-format wants to split these messages across multiple lines, which confuses the heck out of coccinelle.
Diffstat (limited to 'src/feature/dirclient')
-rw-r--r--src/feature/dirclient/dirclient.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/feature/dirclient/dirclient.c b/src/feature/dirclient/dirclient.c
index 1b6eed12f0..d2df6f30da 100644
--- a/src/feature/dirclient/dirclient.c
+++ b/src/feature/dirclient/dirclient.c
@@ -51,6 +51,7 @@
#include "feature/rend/rendservice.h"
#include "feature/stats/predict_ports.h"
+#include "lib/cc/ctassert.h"
#include "lib/compress/compress.h"
#include "lib/crypt_ops/crypto_format.h"
#include "lib/crypt_ops/crypto_util.h"
@@ -1443,9 +1444,7 @@ compare_strs_(const void **a, const void **b)
}
#define CONDITIONAL_CONSENSUS_FPR_LEN 3
-#if (CONDITIONAL_CONSENSUS_FPR_LEN > DIGEST_LEN)
-#error "conditional consensus fingerprint length is larger than digest length"
-#endif
+CTASSERT(CONDITIONAL_CONSENSUS_FPR_LEN <= DIGEST_LEN);
/** Return the URL we should use for a consensus download.
*