diff options
Diffstat (limited to 'malloc/tst-mallocstate.c')
-rw-r--r-- | malloc/tst-mallocstate.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/malloc/tst-mallocstate.c b/malloc/tst-mallocstate.c index 8548dad653..69c4500b85 100644 --- a/malloc/tst-mallocstate.c +++ b/malloc/tst-mallocstate.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001-2013 Free Software Foundation, Inc. +/* Copyright (C) 2001-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Wolfram Gloger <wg@malloc.de>, 2001. @@ -48,19 +48,19 @@ main (void) free (malloc (10)); - for (i=0; i<100; ++i) + for (i = 0; i < 100; ++i) { save_state = malloc_get_state (); if (save_state == NULL) - { - merror ("malloc_get_state () failed."); - break; - } + { + merror ("malloc_get_state () failed."); + break; + } /*free (malloc (10)); This could change the top chunk! */ malloc_set_state (save_state); - p1 = realloc (p1, i*4 + 4); + p1 = realloc (p1, i * 4 + 4); if (p1 == NULL) - merror ("realloc (i*4) failed."); + merror ("realloc (i*4) failed."); free (save_state); } |