aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-03-22 00:40:04 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-03-22 00:40:04 +0000
commit3e3259771947b9c31d0aeec0835d1469bd4dc524 (patch)
tree48f665841ee752dab170157cf6f13a1b7cdbfb16 /epan/to_str.c
parentaf10d352aa7e04939652dcbd7ec3b743954a468b (diff)
downloadwireshark-3e3259771947b9c31d0aeec0835d1469bd4dc524.tar.gz
wireshark-3e3259771947b9c31d0aeec0835d1469bd4dc524.tar.bz2
wireshark-3e3259771947b9c31d0aeec0835d1469bd4dc524.zip
fix some more warnings
svn path=/trunk/; revision=21104
Diffstat (limited to 'epan/to_str.c')
-rw-r--r--epan/to_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index ac831141dd..f0cd96562e 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -629,7 +629,7 @@ rel_time_to_str(nstime_t *rel_time)
(the seconds part should be zero in that case), stick
a "-" in front of the entire time stamp. */
sign = "";
- time = rel_time->secs;
+ time = (gint) rel_time->secs;
nsec = rel_time->nsecs;
if (time == 0 && nsec == 0) {
g_snprintf(buf, 1+TIME_SECS_LEN+1+6+1, "0.000000000 seconds");
@@ -644,7 +644,7 @@ rel_time_to_str(nstime_t *rel_time)
* or zero; if it's not, the time stamp is bogus,
* with a positive seconds and negative microseconds.
*/
- time = -rel_time->secs;
+ time = (gint) -rel_time->secs;
}
time_secs_to_str_buf(time, nsec, TRUE, p, 1+TIME_SECS_LEN+1+6+1);
@@ -663,7 +663,7 @@ rel_time_to_secs_str(nstime_t *rel_time)
buf=ep_alloc(REL_TIME_SECS_LEN);
- display_signed_time(buf, REL_TIME_SECS_LEN, rel_time->secs,
+ display_signed_time(buf, REL_TIME_SECS_LEN, (gint32) rel_time->secs,
rel_time->nsecs, NSECS);
return buf;
}