summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-22 09:31:31 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-22 09:31:31 -0400
commit48be9221609ceafa259db6f4c32cf947e9395e30 (patch)
tree3575758153de2d121aaa1c0d1d8ba02cb523768d
parent7798c53c989408c64a6d43175e84dbc4bfa137f5 (diff)
downloadtor-48be9221609ceafa259db6f4c32cf947e9395e30.tar.gz
tor-48be9221609ceafa259db6f4c32cf947e9395e30.zip
COCCI: disable DOWLOAD_SCHEDULE macro
-rw-r--r--src/app/config/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index 93cf5427cd..f6eae6e97b 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -186,8 +186,12 @@ static const char unix_q_socket_prefix[] = "unix:\"";
/** macro to help with the bulk rename of *DownloadSchedule to
* *DowloadInitialDelay . */
+#ifndef COCCI
#define DOWNLOAD_SCHEDULE(name) \
{ #name "DownloadSchedule", #name "DownloadInitialDelay", 0, 1 }
+#else
+#define DOWNLOAD_SCHEDULE(name) { NULL, NULL, 0, 1 }
+#endif
/** A list of abbreviations and aliases to map command-line options, obsolete
* option names, or alternative option names, to their current values. */