Fix RATE_LIMIT_INITIALIZER

This commit is contained in:
Nils O. Selåsdal
2014-09-08 22:24:08 +02:00
parent 9b3c1e370b
commit 48563f553d
+2 -2
View File
@@ -71,8 +71,8 @@ struct RateLimit {
* @param tickets number of tickets (bucket depth) * @param tickets number of tickets (bucket depth)
* @param period per this period * @param period per this period
*/ */
#define UC_RATELIMIT_INITIALIZER(tickets)\ #define UC_RATELIMIT_INITIALIZER(tickets, period)\
{ tickets, period, 0, -period} { (tickets,) (period), 0, -(period)}