diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2012-04-20 03:24:24 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2012-04-20 03:24:24 +0000 |
commit | e41aa0b92ca17adeb361d489ad00f1a68cd9451a (patch) | |
tree | 0c76ca252a11e8847368dd4523d2e080dad4d930 /usr.bin/ssh | |
parent | a6c6b66025d0d5653fe2f26a05cc2b1551a9f986 (diff) |
setlinebuf(3) is more readable than setvbuf(.., _IOLBF, ...)
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/sftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c index 6fa1e4005ec..bab97a8c9f3 100644 --- a/usr.bin/ssh/sftp.c +++ b/usr.bin/ssh/sftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.c,v 1.134 2011/11/16 12:24:28 oga Exp $ */ +/* $OpenBSD: sftp.c,v 1.135 2012/04/20 03:24:23 djm Exp $ */ /* * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> * @@ -1907,8 +1907,8 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2) xfree(dir); } - setvbuf(stdout, NULL, _IOLBF, 0); - setvbuf(infile, NULL, _IOLBF, 0); + setlinebuf(stdout); + setlinebuf(infile); interactive = !batchmode && isatty(STDIN_FILENO); err = 0; |