Prefer setvbuf() to setlinebuf().
On FreeBSD's libc setlinebuf is a wrapper to setvbuf anyways. Obtained from: OpenBSD MFC after: 5 days
This commit is contained in:
parent
4c6609d191
commit
ab761cdbfa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275581
@ -23,7 +23,7 @@
|
||||
* -C option added in 1998, original code by Marc Espie, based on FreeBSD
|
||||
* behaviour
|
||||
*
|
||||
* $OpenBSD: patch.c,v 1.50 2012/05/15 19:32:02 millert Exp $
|
||||
* $OpenBSD: patch.c,v 1.52 2014/11/26 18:34:51 millert Exp $
|
||||
* $FreeBSD$
|
||||
*
|
||||
*/
|
||||
@ -150,8 +150,8 @@ main(int argc, char *argv[])
|
||||
const char *tmpdir;
|
||||
char *v;
|
||||
|
||||
setlinebuf(stdout);
|
||||
setlinebuf(stderr);
|
||||
setvbuf(stdout, NULL, _IOLBF, 0);
|
||||
setvbuf(stderr, NULL, _IOLBF, 0);
|
||||
for (i = 0; i < MAXFILEC; i++)
|
||||
filearg[i] = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user