]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fix definition of NELEM in the tests.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 23 Oct 2017 02:28:35 +0000 (22:28 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 23 Oct 2017 02:28:35 +0000 (22:28 -0400)
tests/parse_flags.c

index 1af61ea418df7f21b4713e688e521cbe142348d4..b1f8337f7b21d636c000c232d5d90f5856967ae1 100644 (file)
@@ -22,7 +22,7 @@ static struct {
 };
 
 #ifndef NELEM
-#define NELEM(x) (sizeof(x) / sizeof(&x[0]))
+#define NELEM(x) (sizeof(x) / sizeof(x[0]))
 #endif
 
 int parse_flags(int argc, char **argv)