From patchwork Thu Oct 22 06:23:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qingqing Li X-Patchwork-Id: 40810 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 736BF3851C19; Thu, 22 Oct 2020 06:23:28 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) by sourceware.org (Postfix) with ESMTPS id 414EB3857829 for ; Thu, 22 Oct 2020 06:23:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 414EB3857829 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=liqingqing3@huawei.com Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 64D0BA31C7AD279554C8; Thu, 22 Oct 2020 14:23:21 +0800 (CST) Received: from [10.174.178.215] (10.174.178.215) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Thu, 22 Oct 2020 14:23:14 +0800 Subject: [PATCH] tst-tcfree2: adjust coding style. References: To: , , , From: liqingqing X-Forwarded-Message-Id: Message-ID: Date: Thu, 22 Oct 2020 14:23:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [10.174.178.215] X-CFilter-Loop: Reflected X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hushiyuan Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" tst-tcfree2: adjust coding style. --- malloc/tst-tcfree2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) free (ptrs[0]); diff --git a/malloc/tst-tcfree2.c b/malloc/tst-tcfree2.c index 77323a9a85..b050796580 100644 --- a/malloc/tst-tcfree2.c +++ b/malloc/tst-tcfree2.c @@ -27,15 +27,15 @@ static int do_test (void) { - char * volatile ptrs[20]; +#define COUNT 20 + char * volatile ptrs[COUNT]; int i; /* Allocate enough small chunks so that when we free them all, the tcache is full, and the first one we freed is at the end of its linked list. */ -#define COUNT 20 - for (i=0; i