diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-12-06 10:05:59 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-12-06 10:05:59 -0800 |
commit | e0c3bfb4d609b3505ee1f0040e902f019270793d (patch) | |
tree | fba6f2918c13adb431f454c17d7d112a5c7c7ac7 /pcap-usb-linux.c | |
parent | 07b82c28370091aed9e0a495a46fe0643c195869 (diff) |
Squelch compiler warnings.
Should fix GitHub issue #891.
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r-- | pcap-usb-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 952f22d0..c495aa92 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -1213,7 +1213,7 @@ usb_read_linux_bin(pcap_t *handle, int max_packets _U_, pcap_handler callback, u */ pkth.len = sizeof(pcap_usb_header) + info.hdr->urb_len; } - pkth.ts.tv_sec = info.hdr->ts_sec; + pkth.ts.tv_sec = (time_t)info.hdr->ts_sec; pkth.ts.tv_usec = info.hdr->ts_usec; if (handle->fcode.bf_insns == NULL || @@ -1328,7 +1328,7 @@ usb_read_linux_mmap(pcap_t *handle, int max_packets, pcap_handler callback, u_ch pkth.len = sizeof(pcap_usb_header_mmapped) + (hdr->ndesc * sizeof (usb_isodesc)) + hdr->urb_len; } - pkth.ts.tv_sec = hdr->ts_sec; + pkth.ts.tv_sec = (time_t)hdr->ts_sec; pkth.ts.tv_usec = hdr->ts_usec; if (handle->fcode.bf_insns == NULL || |