diff options
author | 2007-06-01 18:19:40 +0000 | |
---|---|---|
committer | 2007-06-01 18:19:40 +0000 | |
commit | 1142e0a0005759beba9fc08e2f46d38da04cfc86 (patch) | |
tree | a471238f40fc698faf1da8cce62317c5406b40a9 | |
parent | format_op df_startblk can be a daddr64_t too (diff) | |
download | wireguard-openbsd-1142e0a0005759beba9fc08e2f46d38da04cfc86.tar.xz wireguard-openbsd-1142e0a0005759beba9fc08e2f46d38da04cfc86.zip |
Move a useless warning to the only case that uses it (-f) from canacar@
ok beck@
-rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index 15bceca60ac..e09ce07f705 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdump.c,v 1.55 2006/06/16 16:55:46 deraadt Exp $ */ +/* $OpenBSD: tcpdump.c,v 1.56 2007/06/01 18:19:40 todd Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -26,7 +26,7 @@ static const char copyright[] = "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997\n\ The Regents of the University of California. All rights reserved.\n"; static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.55 2006/06/16 16:55:46 deraadt Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/tcpdump.c,v 1.56 2007/06/01 18:19:40 todd Exp $ (LBL)"; #endif /* @@ -423,7 +423,8 @@ main(int argc, char **argv) /* state: STATE_BPF */ if (pcap_lookupnet(device, &localnet, &netmask, ebuf)) { - warning("%s", ebuf); + if (fflag) + warning("%s", ebuf); localnet = 0; netmask = 0; } |