diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2013-11-17 14:02:54 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2013-11-17 14:02:54 +0000 |
commit | 768d2777a3dda24ca53f32feb9b82afc079fa6b5 (patch) | |
tree | cf48aa6b25bfc9c04a4a5b594fc9b5d52303b6c8 /epan/dissectors/packet-kt.c | |
parent | 101c3cd268906ffd8dd5ec3164f8fbde4193444e (diff) |
use explicit casts to fix compilation on OS X
svn path=/trunk/; revision=53386
Diffstat (limited to 'epan/dissectors/packet-kt.c')
-rw-r--r-- | epan/dissectors/packet-kt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-kt.c b/epan/dissectors/packet-kt.c index a9d0f59d9c..0b8eb4eb67 100644 --- a/epan/dissectors/packet-kt.c +++ b/epan/dissectors/packet-kt.c @@ -165,8 +165,8 @@ dissect_kt_replication_wait(tvbuff_t *tvb, proto_tree *tree) offset = 1; ts = tvb_get_ntoh64(tvb, offset); - ns_ts.secs = ts / 1000000000; - ns_ts.nsecs = ts % 1000000000; + ns_ts.secs = (time_t)(ts/1000000000); + ns_ts.nsecs = (int)(ts%1000000000); proto_tree_add_time(tree, hf_kt_ts, tvb, offset, 8, &ns_ts); offset += 8; @@ -198,8 +198,8 @@ dissect_kt_replication(tvbuff_t *tvb, proto_tree *tree) offset += 2; } else { /* This is a response. The 32 bits are the first half of the ts */ ts = tvb_get_ntoh64(tvb, offset); - ns_ts.secs = ts / 1000000000; - ns_ts.nsecs = ts % 1000000000; + ns_ts.secs = (time_t)(ts/1000000000); + ns_ts.nsecs = (int)(ts%1000000000); proto_tree_add_time(tree, hf_kt_ts, tvb, offset, 8, &ns_ts); offset += 8; @@ -492,7 +492,7 @@ dissect_kt_get_bulk(tvbuff_t *tvb, proto_tree *tree) offset += 4; xt = tvb_get_ntoh64(tvb, offset); - ts.secs = xt&0xFFFFFFFF; + ts.secs = (time_t)(xt&0xFFFFFFFF); ts.nsecs = 0; proto_tree_add_time(rec_tree, hf_kt_xt_resp, tvb, offset, 8, &ts); offset += 8; |