diff options
author | Denys Vlasenko | 2022-01-18 00:31:27 +0100 |
---|---|---|
committer | Denys Vlasenko | 2022-01-18 00:36:42 +0100 |
commit | 1e825acf8d715fe49af040cb02f9e96c26955832 (patch) | |
tree | 1ba246aca6ab29b154dd14e61e96fafd6bab475e /coreutils | |
parent | 8ad2acf352d790d0bdd792b8e126d58a088451f3 (diff) | |
download | busybox-1e825acf8d715fe49af040cb02f9e96c26955832.zip busybox-1e825acf8d715fe49af040cb02f9e96c26955832.tar.gz |
libbb: shrink lineedit_read_key()
function old new delta
lineedit_read_key 237 231 -6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/head.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/head.c b/coreutils/head.c index 9586f86..c7537a2 100644 --- a/coreutils/head.c +++ b/coreutils/head.c @@ -76,7 +76,7 @@ print_except_N_last_bytes(FILE *fp, unsigned count) { unsigned char *circle = xmalloc(++count); unsigned head = 0; - for(;;) { + for (;;) { int c; c = getc(fp); if (c == EOF) @@ -105,7 +105,7 @@ print_except_N_last_lines(FILE *fp, unsigned count) { char **circle = xzalloc((++count) * sizeof(circle[0])); unsigned head = 0; - for(;;) { + for (;;) { char *c; c = xmalloc_fgets(fp); if (!c) @@ -127,7 +127,7 @@ print_except_N_last_lines(FILE *fp, unsigned count) } ret: head = 0; - for(;;) { + for (;;) { free(circle[head++]); if (head == count) break; |