Refresh tcpdump patch (#4441)
[openwrt/svn-archive/archive.git] / net / tcpdump / patches / 001-remove_pcap_debug.patch
1 diff -urN tcpdump-3.9.8.orig/tcpdump.c tcpdump-3.9.8/tcpdump.c
2 --- tcpdump-3.9.8.orig/tcpdump.c
3 +++ tcpdump-3.9.8/tcpdump.c
4 @@ -765,20 +765,6 @@
5 error("invalid data link type %s", gndo->ndo_dltname);
6 break;
7
8 -#if defined(HAVE_PCAP_DEBUG) || defined(HAVE_YYDEBUG)
9 - case 'Y':
10 - {
11 - /* Undocumented flag */
12 -#ifdef HAVE_PCAP_DEBUG
13 - extern int pcap_debug;
14 - pcap_debug = 1;
15 -#else
16 - extern int yydebug;
17 - yydebug = 1;
18 -#endif
19 - }
20 - break;
21 -#endif
22 case 'Z':
23 if (optarg) {
24 username = strdup(optarg);