diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-10 15:01:42 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-06 14:54:04 -0500 |
commit | 06a6130666315cb1d385b89d7c95df42ac17db1a (patch) | |
tree | 59336636e904ffb39180dbcfcf9d7fa1b913d38a /src/test/test_pt.c | |
parent | 6104c407e077175087b7ae117c0ace5ce3897bcf (diff) | |
download | tor-06a6130666315cb1d385b89d7c95df42ac17db1a.tar.gz tor-06a6130666315cb1d385b89d7c95df42ac17db1a.zip |
Use parentheses to avoid mis-indentations of stringified macro args
clang-format sometimes thinks that "#name" should be written as
"# name" if it appears at the start of a line. Using () appears
to suppress this, while confusing Coccinelle.
Diffstat (limited to 'src/test/test_pt.c')
-rw-r--r-- | src/test/test_pt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_pt.c b/src/test/test_pt.c index 26eaf7b7e7..893fec3674 100644 --- a/src/test/test_pt.c +++ b/src/test/test_pt.c @@ -579,8 +579,10 @@ test_get_pt_proxy_uri(void *arg) tor_free(uri); } +#ifndef COCCI #define PT_LEGACY(name) \ - { #name, test_pt_ ## name , 0, NULL, NULL } + { (#name), test_pt_ ## name , 0, NULL, NULL } +#endif struct testcase_t pt_tests[] = { PT_LEGACY(parsing), |