summary refs log tree commit diff
path: root/stdio-common/bug16.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-11-02 12:14:51 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-11-02 12:45:20 +0100
commitd10b132bf5393e648a1c64569746c8e886d50702 (patch)
tree66a444574feee728a133c754c9527c02fe25e249 /stdio-common/bug16.c
parentc94a5688fb1228a862b2d4a3f1239cdc0e3349e5 (diff)
downloadglibc-d10b132bf5393e648a1c64569746c8e886d50702.tar.gz
glibc-d10b132bf5393e648a1c64569746c8e886d50702.tar.xz
glibc-d10b132bf5393e648a1c64569746c8e886d50702.zip
stdio-common: Use array_length and array_end macros
Diffstat (limited to 'stdio-common/bug16.c')
-rw-r--r--stdio-common/bug16.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/bug16.c b/stdio-common/bug16.c
index 1112c39d05..91bc452826 100644
--- a/stdio-common/bug16.c
+++ b/stdio-common/bug16.c
@@ -1,3 +1,4 @@
+#include <array_length.h>
 #include <stdio.h>
 #include <string.h>
 
@@ -19,7 +20,7 @@ do_test (void)
   char buf[100];
   int ret = 0;
 
-  for (size_t i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i)
+  for (size_t i = 0; i < array_length (tests); ++i)
     {
       snprintf (buf, sizeof (buf), "%.0LA", tests[i].val);