Add casts to fix OSX 10.6 buildbot

Change-Id: Ice852356201ba222290d2705d9f5526ce242b031
Reviewed-on: https://code.wireshark.org/review/1668
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2014-05-17 08:02:45 -04:00
parent 89a72f328a
commit 8129c2d13d
1 changed files with 3 additions and 3 deletions

View File

@ -3363,7 +3363,7 @@ static int dissect_DIS_FIELDS_CLOCK_TIME(tvbuff_t *tvb, proto_tree *tree, int of
ms = (uintVal >> 1) * MSEC_PER_HOUR / FSV;
tv.secs = (time_t)ms/1000;
tv.nsecs = (ms%1000)*1000000;
tv.nsecs = (int)(ms%1000)*1000000;
/* add hour */
tv.secs += (hour*3600);
@ -3661,7 +3661,7 @@ static gint parse_DIS_FIELDS_SIGNAL_LINK16_NETWORK_HEADER(tvbuff_t *tvb, proto_t
offset += 4;
tv.secs = tvb_get_ntohl(tvb, offset);
if (tv.secs == 0xFFFFFFFF)
if (tv.secs == (time_t)0xFFFFFFFF)
{
tv.nsecs = 0;
proto_tree_add_time_format_value(sub_tree, hf_dis_signal_link16_ptt, tvb, offset, 8, &tv, "NO STATEMENT");
@ -5260,7 +5260,7 @@ static gint parseField_Timestamp(tvbuff_t *tvb, proto_tree *tree, gint offset, i
ms = (uintVal >> 1) * MSEC_PER_HOUR / FSV;
tv.secs = (time_t)ms/1000;
tv.nsecs = (ms%1000)*1000000;
tv.nsecs = (int)(ms%1000)*1000000;
ti = proto_tree_add_time(tree, hf_relative, tvb, offset, 4, &tv);