tst-tcfree2: adjust coding style.
authorliqingqing <liqingqing3@huawei.com>
Thu, 22 Oct 2020 06:23:14 +0000 (14:23 +0800)
committerDJ Delorie <dj@redhat.com>
Fri, 30 Oct 2020 18:47:29 +0000 (14:47 -0400)
tst-tcfree2: adjust coding style.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/tst-tcfree2.c

index 77323a9..b050796 100644 (file)
 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]);