From 267451f37fe18c3ea4e454ae2f9e06affb1c9f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Mon, 8 Sep 2014 22:24:08 +0200 Subject: [PATCH] Fix RATE_LIMIT_INITIALIZER --- include/ucore/rate_limit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ucore/rate_limit.h b/include/ucore/rate_limit.h index fdcb656..f3b4038 100644 --- a/include/ucore/rate_limit.h +++ b/include/ucore/rate_limit.h @@ -71,8 +71,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)}