14d1b84e76cd855928d29a36c284a6d8b7e35ba6
[openwrt/openwrt.git] / package / network / utils / tcpdump / patches / 001-remove_pcap_debug.patch
1 --- a/tcpdump.c
2 +++ b/tcpdump.c
3 @@ -982,20 +982,6 @@ main(int argc, char **argv)
4 error("invalid data link type %s", gndo->ndo_dltname);
5 break;
6
7 -#if defined(HAVE_PCAP_DEBUG) || defined(HAVE_YYDEBUG)
8 - case 'Y':
9 - {
10 - /* Undocumented flag */
11 -#ifdef HAVE_PCAP_DEBUG
12 - extern int pcap_debug;
13 - pcap_debug = 1;
14 -#else
15 - extern int yydebug;
16 - yydebug = 1;
17 -#endif
18 - }
19 - break;
20 -#endif
21 case 'z':
22 if (optarg) {
23 zflag = strdup(optarg);