summaryrefslogtreecommitdiffstats
path: root/progressmeter.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-07-03 05:46:56 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-07-03 05:46:56 +0200
commit9f63f22aa0ab13673f197642a66a98b09a18abd0 (patch)
treed0d0ef1e3802a533d3a935f87de175e9ea010cea /progressmeter.c
parent - djm@cvs.openbsd.org 2003/06/28 07:48:10 (diff)
downloadopenssh-9f63f22aa0ab13673f197642a66a98b09a18abd0.tar.xz
openssh-9f63f22aa0ab13673f197642a66a98b09a18abd0.zip
- deraadt@cvs.openbsd.org 2003/06/28 16:23:06
[atomicio.c atomicio.h authfd.c clientloop.c monitor_wrap.c msg.c progressmeter.c scp.c sftp-client.c ssh-keyscan.c ssh.h sshconnect.c sshd.c] deal with typing of write vs read in atomicio
Diffstat (limited to 'progressmeter.c')
-rw-r--r--progressmeter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progressmeter.c b/progressmeter.c
index a3f14c929..6aa225adf 100644
--- a/progressmeter.c
+++ b/progressmeter.c
@@ -64,7 +64,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: progressmeter.c,v 1.7 2003/06/10 22:20:52 deraadt Exp $");
+RCSID("$OpenBSD: progressmeter.c,v 1.8 2003/06/28 16:23:06 deraadt Exp $");
#ifdef HAVE_LIBGEN_H
#include <libgen.h>
@@ -132,7 +132,7 @@ stop_progress_meter(void)
alarm(0);
draw_progress_meter();
if (foregroundproc() != 0)
- atomicio(write, fileno(stdout), "\n", 1);
+ atomicio(vwrite, fileno(stdout), "\n", 1);
}
static void
@@ -255,7 +255,7 @@ draw_progress_meter(void)
"%02d:%02d%s", i / 60, i % 60,
(cursize != totalbytes) ? " ETA" : " ");
}
- atomicio(write, fileno(stdout), buf, strlen(buf));
+ atomicio(vwrite, fileno(stdout), buf, strlen(buf));
}
static int