diff options
author | jan <jan@cvs.openbsd.org> | 2021-05-22 14:30:47 +0000 |
---|---|---|
committer | jan <jan@cvs.openbsd.org> | 2021-05-22 14:30:47 +0000 |
commit | 6bf7229cd3b3519f48f66366e6779230c96f6fed (patch) | |
tree | 89767f7a168c38afc0b2e109a234451c982fbf37 | |
parent | 3fbfb2e8dcf0765608db73aa6f24b8f7a868e7a6 (diff) |
Remove useless fflush(3) calls. lreply() already called fflush(3).
OK martijn@
-rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 0da0d337f46..88b9ef5db59 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.230 2021/05/20 15:21:03 jan Exp $ */ +/* $OpenBSD: ftpd.c,v 1.231 2021/05/22 14:30:46 jan Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -568,7 +568,6 @@ main(int argc, char *argv[]) line[strcspn(line, "\n")] = '\0'; lreply(530, "%s", line); } - (void) fflush(stdout); (void) fclose(fp); reply(530, "System not available."); exit(0); @@ -578,7 +577,6 @@ main(int argc, char *argv[]) line[strcspn(line, "\n")] = '\0'; lreply(220, "%s", line); } - (void) fflush(stdout); (void) fclose(fp); /* reply(220,) must follow */ } @@ -1078,7 +1076,6 @@ pass(char *passwd) line[strcspn(line, "\n")] = '\0'; lreply(230, "%s", line); } - (void) fflush(stdout); (void) fclose(fp); } free(motd); @@ -2029,7 +2026,6 @@ cwd(char *path) line[strcspn(line, "\n")] = '\0'; lreply(250, "%s", line); } - (void) fflush(stdout); (void) fclose(message); } ack("CWD"); |