Skip to content
Snippets Groups Projects
Commit 189375fb authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

ratelim.h: use COCCI to hide an initializer.

parent c77f57d3
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment