From d10b132bf5393e648a1c64569746c8e886d50702 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 2 Nov 2017 12:14:51 +0100 Subject: stdio-common: Use array_length and array_end macros --- stdio-common/test-vfprintf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'stdio-common/test-vfprintf.c') diff --git a/stdio-common/test-vfprintf.c b/stdio-common/test-vfprintf.c index f8bb9ce..0fcc1ad 100644 --- a/stdio-common/test-vfprintf.c +++ b/stdio-common/test-vfprintf.c @@ -17,6 +17,7 @@ License along with the GNU C Library; if not, see . */ +#include #include #include #include @@ -32,8 +33,6 @@ const char *locs[] = { "C", "de_DE.ISO-8859-1", "de_DE.UTF-8", "ja_JP.EUC-JP" }; -#define nlocs (sizeof (locs) / sizeof (locs[0])) - char large[50000]; @@ -56,7 +55,7 @@ do_test (void) } unlink (buf); - for (i = 0; i < nlocs; ++i) + for (i = 0; i < array_length (locs); ++i) { FILE *fp; struct stat st; -- cgit v1.1