From 2c69b55e55f2efc5a334b87ccdceaa9de0ecb658 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 30 Apr 2009 19:32:02 +0200 Subject: iptables: replace open-coded sizeof by ARRAY_SIZE Signed-off-by: Jan Engelhardt --- iptables-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables-xml.c') diff --git a/iptables-xml.c b/iptables-xml.c index 543715b4..e5d19419 100644 --- a/iptables-xml.c +++ b/iptables-xml.c @@ -110,7 +110,7 @@ static int add_argv(char *what, int quoted) { DEBUGP("add_argv: %d %s\n", newargc, what); - if (what && ((newargc + 1) < sizeof(newargv) / sizeof(char *))) { + if (what && newargc + 1 < ARRAY_SIZE(newargv)) { newargv[newargc] = strdup(what); newargvattr[newargc] = quoted; newargc++; -- cgit v1.2.3