Fix RATE_LIMIT_INITIALIZER

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