klibc-bot for Herbert Xu
2019-Jan-25 03:15 UTC
[klibc] [klibc:update-dash] [INPUT] Replace open-coded flushall in preadbuffer
Commit-ID: 9a8f7bd9327b38f276e528e3429649c5f4991d91 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9a8f7bd9327b38f276e528e3429649c5f4991d91 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: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [INPUT] Replace open-coded flushall in preadbuffer 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) {
Maybe Matching Threads
- [klibc:update-dash] 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