1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +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

@@ -55,20 +55,20 @@ main (void)
ssize_t n = getline (&line, &linelen, fp);
if (n < 0)
break;
break;
if (n == 0)
continue;
continue;
copy = strdup (line);
if (copy == NULL)
abort ();
abort ();
p = (char **) tsearch (copy, &root,
(int (*) (const void *, const void *)) strcmp);
(int (*)(const void *, const void *))strcmp);
if (*p != copy)
/* This line wasn't added. */
free (copy);
/* This line wasn't added. */
free (copy);
}
fclose (fp);