tst-tcfree2: adjust coding style.

Message ID f31538ac-c369-fb4e-4238-ec7aef768e54@huawei.com
State Committed
Headers
Series tst-tcfree2: adjust coding style. |

Commit Message

Qingqing Li Oct. 22, 2020, 6:23 a.m. UTC
  tst-tcfree2: adjust coding style.
---
  malloc/tst-tcfree2.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

    free (ptrs[0]);
  

Patch

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