1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Reformat malloc to gnu style.

This commit is contained in:
Ondřej Bílka
2014-01-02 09:38:18 +01:00
parent 9a3c6a6ff6
commit 6c8dbf00f5
18 changed files with 3843 additions and 3559 deletions

View File

@ -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);