From 72bab144d01649867fcb428518e0f5ad4ea2b6cd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 26 Jan 2010 13:10:40 +0100 Subject: src: use ARRAY_SIZE to calculate the array size of keys This patch is a cleanup to use ARRAY_SIZE in NFLOG and ULOG input plugins. Signed-off-by: Pablo Neira Ayuso --- input/packet/ulogd_inppkt_ULOG.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input/packet/ulogd_inppkt_ULOG.c') diff --git a/input/packet/ulogd_inppkt_ULOG.c b/input/packet/ulogd_inppkt_ULOG.c index 719898d..80bbd5f 100644 --- a/input/packet/ulogd_inppkt_ULOG.c +++ b/input/packet/ulogd_inppkt_ULOG.c @@ -323,7 +323,7 @@ struct ulogd_plugin libulog_plugin = { .output = { .type = ULOGD_DTYPE_RAW, .keys = output_keys, - .num_keys = sizeof(output_keys)/sizeof(struct ulogd_key), + .num_keys = ARRAY_SIZE(output_keys), }, .configure = &configure, .start = &init, -- cgit v1.2.3