aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-sscanf.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/tst-sscanf.c
parentc94a5688fb1228a862b2d4a3f1239cdc0e3349e5 (diff)
downloadglibc-d10b132bf5393e648a1c64569746c8e886d50702.zip
glibc-d10b132bf5393e648a1c64569746c8e886d50702.tar.gz
glibc-d10b132bf5393e648a1c64569746c8e886d50702.tar.bz2
stdio-common: Use array_length and array_end macros
Diffstat (limited to 'stdio-common/tst-sscanf.c')
-rw-r--r--stdio-common/tst-sscanf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/stdio-common/tst-sscanf.c b/stdio-common/tst-sscanf.c
index c070e14..9ccd86e 100644
--- a/stdio-common/tst-sscanf.c
+++ b/stdio-common/tst-sscanf.c
@@ -16,6 +16,7 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <array_length.h>
#include <stdlib.h>
#include <stdio.h>
#include <locale.h>
@@ -184,7 +185,7 @@ do_test (void)
break;
}
- for (i = 0; i < sizeof (int_tests) / sizeof (int_tests[0]); ++i)
+ for (i = 0; i < array_length (int_tests); ++i)
{
long dummy;
int ret;
@@ -198,7 +199,7 @@ do_test (void)
}
}
- for (i = 0; i < sizeof (double_tests) / sizeof (double_tests[0]); ++i)
+ for (i = 0; i < array_length (double_tests); ++i)
{
double dummy;
int ret;
@@ -212,7 +213,7 @@ do_test (void)
}
}
- for (i = 0; i < sizeof (double_tests2) / sizeof (double_tests2[0]); ++i)
+ for (i = 0; i < array_length (double_tests2); ++i)
{
double dummy;
int ret;