summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorWilbern Cobb <wcobb@cvs.openbsd.org>2002-11-26 00:45:04 +0000
committerWilbern Cobb <wcobb@cvs.openbsd.org>2002-11-26 00:45:04 +0000
commit05fac4d8fd89533ada575fcedaac2375eb557fab (patch)
treec565b79ee97f444e13d5c3b662e218c451467915 /usr.bin
parent94a1065f6507f2f2e7a37ae975492385c37ce53f (diff)
Remove unnecessary fflush(stderr) calls, stderr is unbuffered by default.
ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/scp.c3
-rw-r--r--usr.bin/ssh/ssh-keygen.c3
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'))