diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-08-10 21:27:26 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-08-10 21:27:26 +0000 |
commit | a1abe1540bbb396564d7d948cc86f0a537c66142 (patch) | |
tree | 96cb1fe059b0b4dc3d6ed31284ecb4c3e63e7067 /dumpcap.c | |
parent | 36f3b77f6dec58b2b9f2ff78bf5b58c671efcfca (diff) |
Fix error when build with clang 3.0
dumpcap.c:3981:88: error: implicit conversion loses integer precision: 'const __suseconds_t'
(aka 'const long') to 'guint32' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
phdr->ts.tv_sec, phdr->ts.tv_usec,
~~~~~~~~~^~~~~~~
dumpcap.c:3989:73: error: implicit conversion loses integer precision: 'const __suseconds_t'
(aka 'const long') to 'guint32' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
phdr->ts.tv_sec, phdr->ts.tv_usec,
~~~~~~~~~^~~~~~~
svn path=/trunk/; revision=51250
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3986,7 +3986,7 @@ capture_loop_write_packet_cb(u_char *pcap_opts_p, const struct pcap_pkthdr *phdr if (global_capture_opts.use_pcapng) { successful = libpcap_write_enhanced_packet_block(libpcap_write_to_file, global_ld.pdh, NULL, - phdr->ts.tv_sec, phdr->ts.tv_usec, + phdr->ts.tv_sec, (gint32)phdr->ts.tv_usec, phdr->caplen, phdr->len, pcap_opts->interface_id, ts_mul, @@ -3994,7 +3994,7 @@ capture_loop_write_packet_cb(u_char *pcap_opts_p, const struct pcap_pkthdr *phdr &global_ld.bytes_written, &err); } else { successful = libpcap_write_packet(libpcap_write_to_file, global_ld.pdh, - phdr->ts.tv_sec, phdr->ts.tv_usec, + phdr->ts.tv_sec, (gint32)phdr->ts.tv_usec, phdr->caplen, phdr->len, pd, &global_ld.bytes_written, &err); |