]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tst-strftime2: Use array_length macros instead of magic numbers
authorTAMUKI Shoichi <tamuki@linet.gr.jp>
Fri, 8 Feb 2019 13:03:14 +0000 (22:03 +0900)
committerTAMUKI Shoichi <tamuki@linet.gr.jp>
Fri, 8 Feb 2019 13:03:14 +0000 (22:03 +0900)
ChangeLog:

* time/tst-strftime2.c: Use array_length macros instead of magic
numbers.

ChangeLog
time/tst-strftime2.c

index 8b3148245d47be3976276188f3337db901c2899d..4766dc415f07cdba49bae46bef1a07906ab0e7dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 57d2144c83cf89de2a69654089299c726c4ea731..3dca2a997f9da51251e85027cd9b805ab64fbf5b 100644 (file)
@@ -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)