diff options
author | João Valverde <j@v6e.pt> | 2023-02-06 11:04:13 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-02-06 15:05:36 +0000 |
commit | 71cfbd81b33685eddde52fbaf12fd0ddced53f79 (patch) | |
tree | bd35f0e70adc462992b8abce1ddf713455eae282 /tools | |
parent | ab0d1904501e0f2daf50371ecba49a2e6e9a7d5f (diff) |
Remove wspcap.h and use config.h instead
Forcing the use of a dedicated header to replace pcap.h is
unnecessary code and mental overhead in this case. We can
use config.h instead for the same purpose of defining a
macro symbol before including pcap.h.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 13 | ||||
-rw-r--r-- | tools/radiotap-gen/radiotap-gen.c | 2 |
2 files changed, 1 insertions, 14 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 70e0321e31..d943338876 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -547,19 +547,6 @@ sub check_included_files($$) } } - # only our wrapper file wspcap.h may include pcap.h - # all other files should include the wrapper - if ($filename !~ /wspcap\.h/) { - foreach (@incFiles) { - if ( m#([<"]|/+)pcap\.h[>"]$# ) { - print STDERR "Warning: ".$filename. - " includes pcap.h directly. ". - "Include wspcap.h instead.\n"; - last; - } - } - } - # files in the ui/qt directory should include the ui class includes # by using #include <> # this ensures that Visual Studio picks up these files from the diff --git a/tools/radiotap-gen/radiotap-gen.c b/tools/radiotap-gen/radiotap-gen.c index 7e4482ce1d..378912c2ef 100644 --- a/tools/radiotap-gen/radiotap-gen.c +++ b/tools/radiotap-gen/radiotap-gen.c @@ -15,7 +15,7 @@ #include <errno.h> #include <glib.h> -#include "wspcap.h" +#include <pcap.h> #include <stdint.h> #include <stdlib.h> #include <string.h> |