aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-08-10 21:27:26 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-08-10 21:27:26 +0000
commita1abe1540bbb396564d7d948cc86f0a537c66142 (patch)
tree96cb1fe059b0b4dc3d6ed31284ecb4c3e63e7067 /dumpcap.c
parent36f3b77f6dec58b2b9f2ff78bf5b58c671efcfca (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 058ec61854..f68a1ef999 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -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);