aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netmon.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2003-12-23 00:16:46 +0000
committerUlf Lamping <ulf.lamping@web.de>2003-12-23 00:16:46 +0000
commit467c05b3eab962751172f9b4ae60717bb9b5a9a7 (patch)
treec1e494ef15d9d99575a97407dbcb12275ec5b1f0 /wiretap/netmon.c
parent447e29ec3615efb66fb733f21dc02a91d30fe0fa (diff)
removed some MSVC warnings (conversions between double/float and int)
svn path=/trunk/; revision=9422
Diffstat (limited to 'wiretap/netmon.c')
-rw-r--r--wiretap/netmon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c
index 897ca5d669..2beefcdbe2 100644
--- a/wiretap/netmon.c
+++ b/wiretap/netmon.c
@@ -1,6 +1,6 @@
/* netmon.c
*
- * $Id: netmon.c,v 1.66 2003/11/06 22:45:28 guy Exp $
+ * $Id: netmon.c,v 1.67 2003/12/23 00:15:02 ulfl Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -691,8 +691,8 @@ static gboolean netmon_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
*/
t = (phdr->ts.tv_sec - netmon->first_record_time.tv_sec)*1000000.0
+ (phdr->ts.tv_usec - netmon->first_record_time.tv_usec);
- time_high = t/4294967296.0;
- time_low = t - (time_high*4294967296.0);
+ time_high = (guint32) (t/4294967296.0);
+ time_low = (guint32) (t - (time_high*4294967296.0));
rec_2_x_hdr.ts_delta_lo = htolel(time_low);
rec_2_x_hdr.ts_delta_hi = htolel(time_high);
rec_2_x_hdr.orig_len = htolel(phdr->len + atm_hdrsize);