From 122337087b8fd55f7ad9e5c5a92fbb813adade41 Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 22 May 2021 14:30:46 +0000 Subject: [PATCH] Remove useless fflush(3) calls. lreply() already called fflush(3). OK martijn@ --- libexec/ftpd/ftpd.c | 6 +----- 1 file changed, 1 insertion(+), 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"); -- 2.20.1