]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
consdiff disable a macro when running with COCCI
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 15:12:41 +0000 (11:12 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/feature/dircommon/consdiff.c

index 8e93953f73d3baedb2b93690014493475e911387..f75ec848b58c79f2fb3cc708ed06f16988e24c9a 100644 (file)
@@ -530,10 +530,12 @@ typedef struct router_id_iterator_t {
   cdline_t hash;
 } router_id_iterator_t;
 
+#ifndef COCCI
 /**
  * Initializer for a router_id_iterator_t.
  */
 #define ROUTER_ID_ITERATOR_INIT { { NULL, 0 }, { NULL, 0 } }
+#endif
 
 /** Given an index *<b>idxp</b> into the consensus at <b>cons</b>, advance
  * the index to the next router line ("r ...") in the consensus, or to