diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-09-14 07:10:13 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-09-14 07:10:13 +0000 |
commit | ac3b47106ad1f890742eddb0421ee47b8a835917 (patch) | |
tree | f03564f0bad20129e2a6ef83bc198287372a9cae /packet-mbtcp.c | |
parent | b2552bbd08807b250f8a20ed5b919bfdfed56e79 (diff) |
Make the resolution for time values be nanoseconds rather than
microseconds.
Fix some "signed vs. unsigned" comparison warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3934 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-mbtcp.c')
-rw-r--r-- | packet-mbtcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-mbtcp.c b/packet-mbtcp.c index 5248e1de71..bb110ba579 100644 --- a/packet-mbtcp.c +++ b/packet-mbtcp.c @@ -10,7 +10,7 @@ * * for information on Modbus/TCP. * - * $Id: packet-mbtcp.c,v 1.4 2001/06/18 02:17:48 guy Exp $ + * $Id: packet-mbtcp.c,v 1.5 2001/09/14 07:10:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -323,7 +323,7 @@ dissect_mbtcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } offset = offset + sizeof(mbtcp_hdr) + (mh.len - sizeof(modbus_hdr)); packet_num++; - } while ( offset < tvb_length(tvb) ); + } while ( tvb_reported_length_remaining(tvb, offset) > 0 ); /* Update entries in Info column on summary display */ |