diff options
author | Moritz Jodeit <moritz@cvs.openbsd.org> | 2006-03-13 19:05:57 +0000 |
---|---|---|
committer | Moritz Jodeit <moritz@cvs.openbsd.org> | 2006-03-13 19:05:57 +0000 |
commit | 93e999e18eeac8fc2bf2335d97c04180a8dd8a10 (patch) | |
tree | dc1815ffa14f28f41399afafa251f0ec38eef56b /usr.sbin/tcpdump/tcpdump.c | |
parent | 1b59c0ec0f05a3fc80ab596f35d1b6f1c86ae444 (diff) |
Simplify error() and warning() a bit. From Alexey Dobriyan.
ok jaredy@ otto@
Diffstat (limited to 'usr.sbin/tcpdump/tcpdump.c')
-rw-r--r-- | usr.sbin/tcpdump/tcpdump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/tcpdump.c b/usr.sbin/tcpdump/tcpdump.c index d0fc74234fb..b3520aecc1a 100644 --- a/usr.sbin/tcpdump/tcpdump.c +++ b/usr.sbin/tcpdump/tcpdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcpdump.c,v 1.49 2006/02/15 20:34:23 otto Exp $ */ +/* $OpenBSD: tcpdump.c,v 1.50 2006/03/13 19:05:56 moritz 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: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.49 2006/02/15 20:34:23 otto Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/tcpdump.c,v 1.50 2006/03/13 19:05:56 moritz Exp $ (LBL)"; #endif /* @@ -195,7 +195,7 @@ pcap_list_linktypes(pcap_t *p) err(1, "BIOCGDLTLIST"); if (dl.bfl_len > MAXDLT) - error("Invalid number of linktypes: %u\n", dl.bfl_len); + error("Invalid number of linktypes: %u", dl.bfl_len); fprintf(stderr, "%d link type%s supported:\n", dl.bfl_len, dl.bfl_len == 1 ? "" : "s"); |