]> git.pond.sub.org Git - empserver/commitdiff
(output): Remove C_FLUSH from output() as C_FLUSH is dealt with
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 13 Nov 2005 12:23:17 +0000 (12:23 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 13 Nov 2005 12:23:17 +0000 (12:23 +0000)
by servercmd() and output() is not called from servercmd() with a
code of C_FLUSH.

src/client/servcmd.c

index 1865c04a1c8458d03805a7b208b3819e0266faac..0a0cd2f139ebbc0dd70f263a911368d4fe05b6dd 100644 (file)
@@ -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);
     }
 }