From patchwork Thu Feb 7 02:20:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: TAMUKI Shoichi X-Patchwork-Id: 31338 Received: (qmail 15899 invoked by alias); 7 Feb 2019 02:21:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 15418 invoked by uid 89); 7 Feb 2019 02:21:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mail.linet.jp Message-Id: <201902070220.AA04232@tamuki.linet.gr.jp> From: TAMUKI Shoichi Date: Thu, 07 Feb 2019 11:20:23 +0900 To: libc-alpha@sourceware.org Subject: [PATCH v2] tst-strftime2: Declare an array for reference using array_length MIME-Version: 1.0 Declare an array for reference using array_length macros instead of magic numbers. ChangeLog: * time/tst-strftime2.c: Declare an array for reference using array_length macros instead of magic numbers. --- time/tst-strftime2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)