]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
ratelim.h: use COCCI to hide an initializer.
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Oct 2019 17:09:44 +0000 (13:09 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 22 Oct 2019 13:32:13 +0000 (09:32 -0400)
src/lib/log/ratelim.h

index 1db54ba726205cf8879e43ab6a61318d1dfee8be..64f52df666271a706cd046237fb30d975d9541cc 100644 (file)
@@ -45,7 +45,9 @@ typedef struct ratelim_t {
   int n_calls_since_last_time;
 } ratelim_t;
 
+#ifndef COCCI
 #define RATELIM_INIT(r) { (r), 0, 0 }
+#endif
 #define RATELIM_TOOMANY (16*1000*1000)
 
 char *rate_limit_log(ratelim_t *lim, time_t now);