public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: DJ Delorie <dj@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] tst-tcfree2: adjust coding style.
Date: Fri, 30 Oct 2020 18:53:22 +0000 (GMT)	[thread overview]
Message-ID: <20201030185322.C23023851C25@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=024f873209f531322661578d3468b1f0a132640c

commit 024f873209f531322661578d3468b1f0a132640c
Author: liqingqing <liqingqing3@huawei.com>
Date:   Thu Oct 22 14:23:14 2020 +0800

    tst-tcfree2: adjust coding style.
    
    tst-tcfree2: adjust coding style.
    
    Reviewed-by: DJ Delorie <dj@redhat.com>

Diff:
---
 malloc/tst-tcfree2.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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<COUNT; i++)
+  for (i = 0; i < COUNT; i++)
     ptrs[i] = malloc (20);
-  for (i=0; i<COUNT; i++)
+  for (i = 0; i < COUNT; i++)
     free (ptrs[i]);
   free (ptrs[0]);


                 reply	other threads:[~2020-10-30 18:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201030185322.C23023851C25@sourceware.org \
    --to=dj@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).