diff options
author | TAMUKI Shoichi <tamuki@linet.gr.jp> | 2019-02-08 22:03:14 +0900 |
---|---|---|
committer | TAMUKI Shoichi <tamuki@linet.gr.jp> | 2019-02-08 22:03:14 +0900 |
commit | 144a794e0a1670dfc7a178637c7f35b5910c42ec (patch) | |
tree | 577ac6b6e78edafcc7d8b4cd1d25d18d04cfc631 | |
parent | 669ff911e2571f74a2668493e326ac9a505776bd (diff) | |
download | glibc-144a794e0a1670dfc7a178637c7f35b5910c42ec.zip glibc-144a794e0a1670dfc7a178637c7f35b5910c42ec.tar.gz glibc-144a794e0a1670dfc7a178637c7f35b5910c42ec.tar.bz2 |
tst-strftime2: Use array_length macros instead of magic numbers
ChangeLog:
* time/tst-strftime2.c: Use array_length macros instead of magic
numbers.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | time/tst-strftime2.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp> + + * time/tst-strftime2.c: Use array_length macros instead of magic + numbers. + 2019-02-08 Florian Weimer <fweimer@redhat.com> [BZ #24161] diff --git a/time/tst-strftime2.c b/time/tst-strftime2.c index 57d2144..3dca2a9 100644 --- a/time/tst-strftime2.c +++ b/time/tst-strftime2.c @@ -41,7 +41,8 @@ static const struct { 1, 3, 98 } }; -static char ref[3][3][6][100]; +static char ref[array_length (locales)][array_length (formats)] + [array_length (dates)][100]; static void mkreftable (void) |