Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/tcpdump/dist make pcap_debug weak.
details: https://anonhg.NetBSD.org/src/rev/01e10ee38698
branches: trunk
changeset: 995464:01e10ee38698
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 24 02:39:12 2018 +0000
description:
make pcap_debug weak.
diffstat:
external/bsd/tcpdump/dist/tcpdump.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r b7de2ce3217b -r 01e10ee38698 external/bsd/tcpdump/dist/tcpdump.c
--- a/external/bsd/tcpdump/dist/tcpdump.c Mon Dec 24 02:07:44 2018 +0000
+++ b/external/bsd/tcpdump/dist/tcpdump.c Mon Dec 24 02:39:12 2018 +0000
@@ -30,7 +30,7 @@
static const char copyright[] _U_ =
"@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000\n\
The Regents of the University of California. All rights reserved.\n";
-__RCSID("$NetBSD: tcpdump.c,v 1.16 2017/09/08 14:01:13 christos Exp $");
+__RCSID("$NetBSD: tcpdump.c,v 1.17 2018/12/24 02:39:12 christos Exp $");
#endif
/*
@@ -261,9 +261,10 @@
pcap_set_parser_debug(int value)
{
#ifdef HAVE_PCAP_DEBUG
- extern int pcap_debug;
+ extern int pcap_debug __weak;
- pcap_debug = value;
+ if (&pcap_debug)
+ pcap_debug = value;
#else /* HAVE_PCAP_DEBUG */
extern int yydebug;
Home |
Main Index |
Thread Index |
Old Index