summaryrefslogtreecommitdiff
path: root/wiretap/ngsniffer.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-02-12 00:24:49 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-02-12 00:24:49 +0000
commite3c70390151a5a9e98e70b400c3d7493ea4b807b (patch)
treee23190decbf760601116e1506ba3bee7956afb1e /wiretap/ngsniffer.c
parentf9870c31aff0f0a0115615d9fccbd6dea9d99638 (diff)
downloadwireshark-e3c70390151a5a9e98e70b400c3d7493ea4b807b.tar.gz
Add a cast.
svn path=/trunk/; revision=24307
Diffstat (limited to 'wiretap/ngsniffer.c')
-rw-r--r--wiretap/ngsniffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c
index 0cb00891ec..94ce6292bd 100644
--- a/wiretap/ngsniffer.c
+++ b/wiretap/ngsniffer.c
@@ -2098,7 +2098,7 @@ static gboolean ngsniffer_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr,
/* Seconds since the start of the capture */
tsecs = phdr->ts.secs - priv->start;
/* Extract the number of days since the start of the capture */
- rec_hdr.time_day = tsecs / 86400; /* # days of capture - 86400 secs/day */
+ rec_hdr.time_day = (guint8)(tsecs / 86400); /* # days of capture - 86400 secs/day */
tsecs -= rec_hdr.time_day * 86400; /* time within day */
/* Convert to picoseconds */
t = tsecs*G_GINT64_CONSTANT(1000000000000U) +