diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-12 00:24:49 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-12 00:24:49 +0000 |
commit | e3c70390151a5a9e98e70b400c3d7493ea4b807b (patch) | |
tree | e23190decbf760601116e1506ba3bee7956afb1e /wiretap | |
parent | f9870c31aff0f0a0115615d9fccbd6dea9d99638 (diff) | |
download | wireshark-e3c70390151a5a9e98e70b400c3d7493ea4b807b.tar.gz wireshark-e3c70390151a5a9e98e70b400c3d7493ea4b807b.tar.bz2 wireshark-e3c70390151a5a9e98e70b400c3d7493ea4b807b.zip |
Add a cast.
svn path=/trunk/; revision=24307
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/ngsniffer.c | 2 |
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) + |