aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pcapng.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-12-21 03:32:16 +0000
committerGuy Harris <guy@alum.mit.edu>2012-12-21 03:32:16 +0000
commit5996b49c531a8844b0d5e110ab435cbf3b3efed3 (patch)
tree7d185fc764e251ceaca4666ef22f240ffedb4a7a /wiretap/pcapng.c
parent9bfcd83721876d337580e8fdc26d18cd8d317093 (diff)
Squelch implicit 64-bit-to-32-bit conversion warnings.
svn path=/trunk/; revision=46650
Diffstat (limited to 'wiretap/pcapng.c')
-rw-r--r--wiretap/pcapng.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c
index 09cf088105..3df8acac43 100644
--- a/wiretap/pcapng.c
+++ b/wiretap/pcapng.c
@@ -2407,7 +2407,7 @@ pcapng_write_section_header_block(wtap_dumper *wdh, int *err)
/* write block header */
bh.block_type = BLOCK_TYPE_SHB;
- bh.block_total_length = sizeof(bh) + sizeof(shb) + options_total_length + 4;
+ bh.block_total_length = (guint32)(sizeof(bh) + sizeof(shb) + options_total_length + 4);
pcapng_debug2("pcapng_write_section_header_block: Total len %u, Options total len %u",bh.block_total_length, options_total_length);
if (!wtap_dump_file_write(wdh, &bh, sizeof bh, err))
@@ -2671,7 +2671,7 @@ pcapng_write_if_descr_block(wtap_dumper *wdh, wtapng_if_descr_t *int_data, int *
/* write block header */
bh.block_type = BLOCK_TYPE_IDB;
- bh.block_total_length = sizeof(bh) + sizeof(idb) + options_total_length + 4;
+ bh.block_total_length = (guint32)(sizeof(bh) + sizeof(idb) + options_total_length + 4);
if (!wtap_dump_file_write(wdh, &bh, sizeof bh, err))
return FALSE;
@@ -2959,7 +2959,7 @@ pcapng_write_interface_statistics_block(wtap_dumper *wdh, wtapng_if_stats_t *if_
/* write block header */
bh.block_type = BLOCK_TYPE_ISB;
- bh.block_total_length = sizeof(bh) + sizeof(isb) + options_total_length + 4;
+ bh.block_total_length = (guint32)(sizeof(bh) + sizeof(isb) + options_total_length + 4);
if (!wtap_dump_file_write(wdh, &bh, sizeof bh, err))
return FALSE;