From 733f747a366fb5cb9e0d05915beec5436ceffd92 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 13 Nov 2005 12:23:17 +0000 Subject: [PATCH] (output): Remove C_FLUSH from output() as C_FLUSH is dealt with by servercmd() and output() is not called from servercmd() with a code of C_FLUSH. --- src/client/servcmd.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/client/servcmd.c b/src/client/servcmd.c index 1865c04a..0a0cd2f1 100644 --- a/src/client/servcmd.c +++ b/src/client/servcmd.c @@ -296,11 +296,6 @@ output(int code, char *buf, FILE *auxfi, int eol) case C_NOECHO: /* not implemented; serve doesn't send it */ break; - case C_FLUSH: - (void)fflush(stdout); - if (auxfi) - (void)fflush(auxfi); - break; case C_ABORT: printf("Aborted\n"); if (auxfi) @@ -325,8 +320,6 @@ output(int code, char *buf, FILE *auxfi, int eol) } if (auxfi) { fprintf(auxfi, "%s", buf); - if (code == C_FLUSH) - (void)fflush(auxfi); } if (redir_fp) @@ -335,8 +328,6 @@ output(int code, char *buf, FILE *auxfi, int eol) fprintf(pipe_fp, "%s", buf); else { screen(buf); - if (code == C_FLUSH) - (void)fflush(stdout); } }