summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/tcpdump.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2014-11-26 18:34:51 +0000
committermillert <millert@openbsd.org>2014-11-26 18:34:51 +0000
commitb9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f (patch)
tree69fcd75ffe77994b2e1cb6398698e26414665990 /usr.sbin/tcpdump/tcpdump.c
parentMake caretx a perl dependency, not just miniperl (diff)
downloadwireguard-openbsd-b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f.tar.xz
wireguard-openbsd-b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f.zip
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-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;