diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-12-20 22:39:32 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-12-20 22:39:32 +0000 |
commit | 064082e68a3aa3a5c4fcc58bb2d3e1f7989939d1 (patch) | |
tree | dbf3b26c28f19e5be18d0c19f671a3a992aca5c8 /wiretap/ngsniffer.c | |
parent | 90c8f5dde0f90e508819918cb5fba86f9735716f (diff) | |
download | wireshark-064082e68a3aa3a5c4fcc58bb2d3e1f7989939d1.tar.gz |
Change G_GINT64_CONSTANT(xxxxU) to G_GUINT64_CONSTANT(xxxx)
svn path=/trunk/; revision=54314
Diffstat (limited to 'wiretap/ngsniffer.c')
-rw-r--r-- | wiretap/ngsniffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c index af055a3cdb..9c18623504 100644 --- a/wiretap/ngsniffer.c +++ b/wiretap/ngsniffer.c @@ -1246,8 +1246,8 @@ found: /* * Convert to seconds and picoseconds. */ - tsecs = t/G_GINT64_CONSTANT(1000000000000U); - tpsecs = t - tsecs*G_GINT64_CONSTANT(1000000000000U); + tsecs = t/G_GUINT64_CONSTANT(1000000000000); + tpsecs = t - tsecs*G_GUINT64_CONSTANT(1000000000000); /* * Add in the time_day value (86400 seconds/day). @@ -2183,8 +2183,8 @@ ngsniffer_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, 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) + - phdr->ts.nsecs*G_GINT64_CONSTANT(1000U); + t = tsecs*G_GUINT64_CONSTANT(1000000000000) + + phdr->ts.nsecs*G_GUINT64_CONSTANT(1000); /* Convert to units of timeunit = 1 */ t /= Psec[1]; t_low = (guint16)((t >> 0) & 0xFFFF); |