From 2cced3146918163c383432fa40488280f3f87371 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 2 May 2018 14:50:12 +0200 Subject: meter: enforce presence of a max size meters are updated dynamically, so we don't know in advance how large this structure can be. Add a 'size' keyword to specifiy an upper limit and update the old syntax to assume a default max value of 65535. Signed-off-by: Florian Westphal --- include/statement.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/statement.h b/include/statement.h index fa0b5dfa..7315e7ae 100644 --- a/include/statement.h +++ b/include/statement.h @@ -178,6 +178,7 @@ struct meter_stmt { struct expr *key; struct stmt *stmt; const char *name; + uint32_t size; }; extern struct stmt *meter_stmt_alloc(const struct location *loc); -- cgit v1.2.3