klibc-bot for Herbert Xu
2020-Mar-28 21:48 UTC
[klibc] [klibc:update-dash] dash: [INPUT] Replace open-coded flushall in preadbuffer
Commit-ID: 6cef351e06e79d4c976674939de5c321557b3cfb Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=6cef351e06e79d4c976674939de5c321557b3cfb Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Mon, 27 Oct 2014 15:39:39 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [INPUT] Replace open-coded flushall in preadbuffer [ dash commit c4d12c3f6424e801ccddda8894aad04d24333f82 ] Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/input.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/usr/dash/input.c b/usr/dash/input.c index 9e533a47..f11ac842 100644 --- a/usr/dash/input.c +++ b/usr/dash/input.c @@ -245,10 +245,7 @@ preadbuffer(void) } if (unlikely(parsenleft == EOF_NLEFT || parsefile->buf == NULL)) return PEOF; - flushout(&output); -#ifdef FLUSHERR - flushout(&errout); -#endif + flushall(); more = parselleft; if (more <= 0) {
Possibly Parallel Threads
- [klibc:update-dash] [INPUT] Replace open-coded flushall in preadbuffer
- [klibc:update-dash] input: Move all input state into parsefile
- [klibc:update-dash] dash: input: Move all input state into parsefile
- [klibc:update-dash] input: Make preadbuffer static
- [klibc:update-dash] dash: input: Make preadbuffer static