From: TAMUKI Shoichi Date: Fri, 8 Feb 2019 13:03:14 +0000 (+0900) Subject: tst-strftime2: Use array_length macros instead of magic numbers X-Git-Tag: glibc-2.30~373 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=144a794e0a1670dfc7a178637c7f35b5910c42ec;p=thirdparty%2Fglibc.git tst-strftime2: Use array_length macros instead of magic numbers ChangeLog: * time/tst-strftime2.c: Use array_length macros instead of magic numbers. --- diff --git a/ChangeLog b/ChangeLog index 8b3148245d4..4766dc415f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-02-08 TAMUKI Shoichi + + * time/tst-strftime2.c: Use array_length macros instead of magic + numbers. + 2019-02-08 Florian Weimer [BZ #24161] diff --git a/time/tst-strftime2.c b/time/tst-strftime2.c index 57d2144c83c..3dca2a997f9 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)