diff options
author | millert <millert@openbsd.org> | 2014-11-26 18:34:51 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2014-11-26 18:34:51 +0000 |
commit | b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f (patch) | |
tree | 69fcd75ffe77994b2e1cb6398698e26414665990 /usr.sbin/mrinfo | |
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.sbin/mrinfo')
-rw-r--r-- | usr.sbin/mrinfo/mrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c index 08962772dc3..72da4b033f6 100644 --- a/usr.sbin/mrinfo/mrinfo.c +++ b/usr.sbin/mrinfo/mrinfo.c @@ -298,7 +298,7 @@ main(int argc, char *argv[]) if (setresuid(uid, uid, uid) == -1) err(1, "setresuid"); - setlinebuf(stderr); + setvbuf(stderr, NULL, _IOLBF, 0); while ((ch = getopt(argc, argv, "d::nr:t:")) != -1) { switch (ch) { |