[v3] tst-strftime2: Use array_length macros instead of magic numbers
Commit Message
ChangeLog:
* time/tst-strftime2.c: Use array_length macros instead of magic
numbers.
---
Remarks:
Compared with v2, I just brushed up the commit message a little.
Since include/array_length.h has been pushed to master, if there is
no problem, I will push this change to master in about 12 hours
later.
time/tst-strftime2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -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)