From: Eric Haszlakiewicz Date: Mon, 23 Oct 2017 02:28:35 +0000 (-0400) Subject: Fix definition of NELEM in the tests. X-Git-Tag: json-c-0.13-20171207~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e424af32b7ccb6f3711c0c116754069b90707910;p=thirdparty%2Fjson-c.git Fix definition of NELEM in the tests. --- diff --git a/tests/parse_flags.c b/tests/parse_flags.c index 1af61ea4..b1f8337f 100644 --- a/tests/parse_flags.c +++ b/tests/parse_flags.c @@ -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)