aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/visual.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-21 01:32:50 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2007-03-21 01:32:50 +0000
commit5e40053d8f6b1644d3f2386eef81ab812666f31d (patch)
tree558e4c1d59be109228944934621baa1a98824e11 /wiretap/visual.c
parent082b378c47df3a1a1381c45fdbc79e3fd650d5f6 (diff)
set compiler option "treat warnings as errors" - to prevent new warnings for wiretap
remove all compiler warnings: a) prevent wrong malloc/free definitions by lex/yacc generated files b) add int/time_t casts - MSVC2005 is more "sensitive" about this than MSVC6 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21078 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/visual.c')
-rw-r--r--wiretap/visual.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/visual.c b/wiretap/visual.c
index 332f985f26..198c62a7fe 100644
--- a/wiretap/visual.c
+++ b/wiretap/visual.c
@@ -490,7 +490,7 @@ static gboolean visual_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
if (visual->index_table_index == 0)
{
/* This is the first packet. Save its start time as the file time. */
- visual->start_time = phdr->ts.secs;
+ visual->start_time = (guint32) phdr->ts.secs;
/* Initialize the index table */
visual->index_table = g_malloc(1024 * sizeof *visual->index_table);
@@ -499,7 +499,7 @@ static gboolean visual_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
/* Calculate milliseconds since capture start. */
delta_msec = phdr->ts.nsecs / 1000000;
- delta_msec += (phdr->ts.secs - visual->start_time) * 1000;
+ delta_msec += ( (guint32) phdr->ts.secs - visual->start_time) * 1000;
vpkt_hdr.ts_delta = htolel(delta_msec);
/* Fill in the length fields. */