diff options
author | 2014-11-26 18:34:51 +0000 | |
---|---|---|
committer | 2014-11-26 18:34:51 +0000 | |
commit | b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f (patch) | |
tree | 69fcd75ffe77994b2e1cb6398698e26414665990 /usr.bin/rup | |
parent | Make caretx a perl dependency, not just miniperl (diff) | |
download | wireguard-openbsd-b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f.tar.xz wireguard-openbsd-b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f.zip |
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'usr.bin/rup')
-rw-r--r-- | usr.bin/rup/rup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c index 2820933a68b..3200cfb01a0 100644 --- a/usr.bin/rup/rup.c +++ b/usr.bin/rup/rup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rup.c,v 1.27 2014/10/08 04:08:13 doug Exp $ */ +/* $OpenBSD: rup.c,v 1.28 2014/11/26 18:34:51 millert Exp $ */ /*- * Copyright (c) 1993, John Brezak @@ -314,7 +314,7 @@ main(int argc, char *argv[]) /*NOTREACHED*/ } - setlinebuf(stdout); + setvbuf(stdout, NULL, _IOLBF, 0); if (argc == optind) allhosts(); |