From a8f73cd6ebcdbdc25f4658cb4ee378329979c49d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 11 Sep 2017 11:56:04 -0700 Subject: Use C99 {u}intN_t types rather than BSD {u_}intN_t types. We can get them on any sufficiently modern UN*X, as they provide . We can get them with MSVC, by including on newer versions or defining them ourselves in older versions. We can get them with various development environments on MS-DOS. Add a pcap/pcap-inttypes.h header file that does what's necessary to get them defined, and include that in the pcap/*.h headers that use those types. Have pcap-types.h only include what's necessary to get u_int defined. --- pcap-usb-linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcap-usb-linux.c') diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index c11bae94..12501624 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -86,8 +86,8 @@ #endif struct mon_bin_stats { - u_int32_t queued; - u_int32_t dropped; + uint32_t queued; + uint32_t dropped; }; struct mon_bin_get { -- cgit v1.2.3