diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2014-11-26 18:34:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2014-11-26 18:34:53 +0000 |
commit | 35b8c30a6f0433fcbf29d035097c44d0fb8cac09 (patch) | |
tree | 42906177e3c7862b1acb0b679e9aa9d3377462ea /usr.sbin/mrinfo/mrinfo.c | |
parent | 5482bf416acec0fc5e5f09533eef538962865157 (diff) |
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'usr.sbin/mrinfo/mrinfo.c')
-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) { |