diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-22 23:57:54 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-22 23:57:54 +0000 |
commit | dba158c167b73b6f2101482a3e88caf53bbdcd7a (patch) | |
tree | a590cd8b1ee3e2ad72125cba7915ecf5c16fdd55 /epan/dissectors/packet-nflog.c | |
parent | ef163bb5696ad48619a78d38ffaede364507b5ca (diff) |
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
Diffstat (limited to 'epan/dissectors/packet-nflog.c')
-rw-r--r-- | epan/dissectors/packet-nflog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-nflog.c b/epan/dissectors/packet-nflog.c index 79abd2b5a8..c4130b78bf 100644 --- a/epan/dissectors/packet-nflog.c +++ b/epan/dissectors/packet-nflog.c @@ -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; |