aboutsummaryrefslogtreecommitdiff
path: root/malloc/tst-realloc.c
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2014-01-02 09:38:18 +0100
committerOndřej Bílka <neleai@seznam.cz>2014-01-02 09:40:10 +0100
commit6c8dbf00f536d78b1937b5af6f57be47fd376344 (patch)
treead86d3e7433a907cac50ebbd9c39ca3402a87c6a /malloc/tst-realloc.c
parent9a3c6a6ff602c88d7155139a7d7d0000b7b7e946 (diff)
downloadglibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.tar
glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.tar.gz
glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.tar.bz2
glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.zip
Reformat malloc to gnu style.
Diffstat (limited to 'malloc/tst-realloc.c')
-rw-r--r--malloc/tst-realloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/malloc/tst-realloc.c b/malloc/tst-realloc.c
index 458f16fe46..dc5fc3db82 100644
--- a/malloc/tst-realloc.c
+++ b/malloc/tst-realloc.c
@@ -79,11 +79,11 @@ do_test (void)
for (i = 0; i < 20; i++)
{
if (c[i] != 0)
- ok = 0;
+ ok = 0;
}
if (ok == 0)
- merror ("first 20 bytes were not cleared");
+ merror ("first 20 bytes were not cleared");
free (p);
@@ -104,11 +104,11 @@ do_test (void)
for (i = 0; i < 16; i++)
{
if (c[i] != 0xff)
- ok = 0;
+ ok = 0;
}
if (ok == 0)
- merror ("first 16 bytes were not correct");
+ merror ("first 16 bytes were not correct");
/* Check failed realloc leaves original untouched (C89). */
c = realloc (p, -1);
@@ -121,11 +121,11 @@ do_test (void)
for (i = 0; i < 16; i++)
{
if (c[i] != 0xff)
- ok = 0;
+ ok = 0;
}
if (ok == 0)
- merror ("first 16 bytes were not correct after failed realloc");
+ merror ("first 16 bytes were not correct after failed realloc");
/* realloc (p, 0) frees p (C89) and returns NULL (glibc). */
p = realloc (p, 0);