001-remove_pcap_debug.patch 470 B

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