aboutsummaryrefslogtreecommitdiff
path: root/src/app/config
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-10 15:01:42 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-06 14:54:04 -0500
commit06a6130666315cb1d385b89d7c95df42ac17db1a (patch)
tree59336636e904ffb39180dbcfcf9d7fa1b913d38a /src/app/config
parent6104c407e077175087b7ae117c0ace5ce3897bcf (diff)
downloadtor-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/app/config')
-rw-r--r--src/app/config/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index bbf984ad08..f75d68932e 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -182,7 +182,7 @@ static const char unix_q_socket_prefix[] = "unix:\"";
* *DowloadInitialDelay . */
#ifndef COCCI
#define DOWNLOAD_SCHEDULE(name) \
- { #name "DownloadSchedule", #name "DownloadInitialDelay", 0, 1 }
+ { (#name "DownloadSchedule"), (#name "DownloadInitialDelay"), 0, 1 }
#else
#define DOWNLOAD_SCHEDULE(name) { NULL, NULL, 0, 1 }
#endif /* !defined(COCCI) */