summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2014-11-26 18:34:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2014-11-26 18:34:53 +0000
commit35b8c30a6f0433fcbf29d035097c44d0fb8cac09 (patch)
tree42906177e3c7862b1acb0b679e9aa9d3377462ea /usr.sbin/tcpdump
parent5482bf416acec0fc5e5f09533eef538962865157 (diff)
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/tcpdump.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c
index c41a41cfedb..c9210fbce23 100644
--- a/usr.sbin/tcpdump/tcpdump.c
+++ b/usr.sbin/tcpdump/tcpdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpdump.c,v 1.66 2014/06/30 04:25:11 deraadt Exp $ */
+/* $OpenBSD: tcpdump.c,v 1.67 2014/11/26 18:34:52 millert Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -277,11 +277,7 @@ main(int argc, char **argv)
break;
case 'l':
-#ifdef HAVE_SETLINEBUF
- setlinebuf(stdout);
-#else
setvbuf(stdout, NULL, _IOLBF, 0);
-#endif
break;
case 'L':
++Lflag;