about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
authorliqingqing <liqingqing3@huawei.com>2020-10-22 14:23:14 +0800
committerDJ Delorie <dj@redhat.com>2020-10-30 14:47:29 -0400
commit024f873209f531322661578d3468b1f0a132640c (patch)
treeef388222d48be306c4b436aa32c7edac2919f553 /malloc
parent5e598c2bbf938eac0f4045f5143f9dd723646672 (diff)
downloadglibc-024f873209f531322661578d3468b1f0a132640c.tar.gz
glibc-024f873209f531322661578d3468b1f0a132640c.tar.xz
glibc-024f873209f531322661578d3468b1f0a132640c.zip
tst-tcfree2: adjust coding style.
tst-tcfree2: adjust coding style.

Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'malloc')
-rw-r--r--malloc/tst-tcfree2.c8
1 files 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]);