Fix whitespace

Replace spaces by tabs for consistency. The rest of the codebase uses
tabs, so the linkerscript parser has to change.

Removed trailing tabs in all codebase.

Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
AntonioND
2017-04-04 22:09:01 +01:00
parent 07cc4fb8fd
commit 5f299bfe6c
10 changed files with 111 additions and 113 deletions

View File

@@ -61,18 +61,18 @@ SLONG
readasciiz(char **dest, FILE *f)
{
size_t r = 0;
size_t bufferLength = 16;
char *start = malloc(bufferLength);
char *s = start;
if (!s) {
err(1, NULL);
}
while (((*s++) = fgetc(f)) != 0) {
r += 1;
if (r >= bufferLength) {
bufferLength *= 2;
start = realloc(start, bufferLength);
@@ -82,7 +82,7 @@ readasciiz(char **dest, FILE *f)
s = start + r;
}
}
*dest = start;
return (r + 1);
}