diff options
author | Ondřej Bílka <neleai@seznam.cz> | 2014-01-02 09:38:18 +0100 |
---|---|---|
committer | Ondřej Bílka <neleai@seznam.cz> | 2014-01-02 09:40:10 +0100 |
commit | 6c8dbf00f536d78b1937b5af6f57be47fd376344 (patch) | |
tree | ad86d3e7433a907cac50ebbd9c39ca3402a87c6a /malloc/tst-mallocstate.c | |
parent | 9a3c6a6ff602c88d7155139a7d7d0000b7b7e946 (diff) | |
download | glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.tar.gz glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.tar.xz glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.zip |
Reformat malloc to gnu style.
Diffstat (limited to 'malloc/tst-mallocstate.c')
-rw-r--r-- | malloc/tst-mallocstate.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/malloc/tst-mallocstate.c b/malloc/tst-mallocstate.c index 2b7c59b48d..69c4500b85 100644 --- a/malloc/tst-mallocstate.c +++ b/malloc/tst-mallocstate.c @@ -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); } |