mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
tst-tcfree2: adjust coding style.
tst-tcfree2: adjust coding style. Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
@@ -27,15 +27,15 @@
|
|||||||
static int
|
static int
|
||||||
do_test (void)
|
do_test (void)
|
||||||
{
|
{
|
||||||
char * volatile ptrs[20];
|
#define COUNT 20
|
||||||
|
char * volatile ptrs[COUNT];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Allocate enough small chunks so that when we free them all, the tcache
|
/* 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. */
|
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);
|
ptrs[i] = malloc (20);
|
||||||
for (i=0; i<COUNT; i++)
|
for (i = 0; i < COUNT; i++)
|
||||||
free (ptrs[i]);
|
free (ptrs[i]);
|
||||||
free (ptrs[0]);
|
free (ptrs[0]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user