public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] tst-tcfree2: adjust coding style.
@ 2020-10-30 18:53 DJ Delorie
  0 siblings, 0 replies; only message in thread
From: DJ Delorie @ 2020-10-30 18:53 UTC (permalink / raw)
  To: glibc-cvs

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]);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-30 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 18:53 [glibc] tst-tcfree2: adjust coding style DJ Delorie

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).