diff options
author | 2002-11-26 00:45:03 +0000 | |
---|---|---|
committer | 2002-11-26 00:45:03 +0000 | |
commit | 9cf672e474102ef8f77cb7b7b075a6aa0e51938f (patch) | |
tree | 80c5d69f8946008739e83ce97da5b63ede9972f7 | |
parent | Whitespace diff; from FreeBSD (diff) | |
download | wireguard-openbsd-9cf672e474102ef8f77cb7b7b075a6aa0e51938f.tar.xz wireguard-openbsd-9cf672e474102ef8f77cb7b7b075a6aa0e51938f.zip |
Remove unnecessary fflush(stderr) calls, stderr is unbuffered by default.
ok markus@
-rw-r--r-- | usr.bin/ssh/scp.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index e55535c51c0..254b9e2d688 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -75,7 +75,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: scp.c,v 1.92 2002/11/07 22:35:38 markus Exp $"); +RCSID("$OpenBSD: scp.c,v 1.93 2002/11/26 00:45:03 wcobb Exp $"); #include "xmalloc.h" #include "atomicio.h" @@ -552,7 +552,6 @@ syserr: run_err("%s: %s", name, strerror(errno)); (long long)stb.st_size, last); if (verbose_mode) { fprintf(stderr, "Sending file modes: %s", buf); - fflush(stderr); } (void) atomicio(write, remout, buf, strlen(buf)); if (response() < 0) diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index ca62aa307e2..c804ba4c1cc 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-keygen.c,v 1.101 2002/06/23 09:39:55 deraadt Exp $"); +RCSID("$OpenBSD: ssh-keygen.c,v 1.102 2002/11/26 00:45:03 wcobb Exp $"); #include <openssl/evp.h> #include <openssl/pem.h> @@ -105,7 +105,6 @@ ask_filename(struct passwd *pw, const char *prompt) snprintf(identity_file, sizeof(identity_file), "%s/%s", pw->pw_dir, name); fprintf(stderr, "%s (%s): ", prompt, identity_file); - fflush(stderr); if (fgets(buf, sizeof(buf), stdin) == NULL) exit(1); if (strchr(buf, '\n')) |