Suppress a (legitimate) compiler warning for now, and leave a comment

indicating that we should do *something* about nanoseconds values >= 1
billion.

svn path=/trunk/; revision=42796
This commit is contained in:
Guy Harris 2012-05-22 23:57:54 +00:00
parent ef163bb569
commit dba158c167
1 changed files with 2 additions and 1 deletions

View File

@ -289,7 +289,8 @@ dissect_nflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
nstime_t ts;
ts.secs = tvb_get_ntoh64(tvb, offset + 4);
ts.nsecs = tvb_get_ntoh64(tvb, offset + 12);
/* XXX - add an "expert info" warning if this is >= 10^9? */
ts.nsecs = (int)tvb_get_ntoh64(tvb, offset + 12);
proto_tree_add_time(tlv_tree, hf_nflog_tlv_timestamp,
tvb, offset + 4, value_len, &ts);
handled = TRUE;