diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-09-14 07:10:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-09-14 07:10:13 +0000 |
commit | 1d42c94b05cf2e4ec056d780b919a05159a17b72 (patch) | |
tree | f03564f0bad20129e2a6ef83bc198287372a9cae /packet-q931.c | |
parent | e32028f6cd3ea4a18a7364fbb32affb4077217d0 (diff) | |
download | wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.tar.gz wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.tar.bz2 wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.zip |
Make the resolution for time values be nanoseconds rather than
microseconds.
Fix some "signed vs. unsigned" comparison warnings.
svn path=/trunk/; revision=3934
Diffstat (limited to 'packet-q931.c')
-rw-r--r-- | packet-q931.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packet-q931.c b/packet-q931.c index c3a46b7e27..b126931b10 100644 --- a/packet-q931.c +++ b/packet-q931.c @@ -2,7 +2,7 @@ * Routines for Q.931 frame disassembly * Guy Harris <guy@alum.mit.edu> * - * $Id: packet-q931.c,v 1.31 2001/07/03 04:56:45 guy Exp $ + * $Id: packet-q931.c,v 1.32 2001/09/14 07:10:05 guy Exp $ * * Modified by Andreas Sikkema for possible use with H.323 * @@ -2099,7 +2099,6 @@ q931_dissector(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean started_heuristic) { int offset = 0; - guint reported_length; proto_tree *q931_tree = NULL; proto_item *ti; proto_tree *ie_tree; @@ -2260,8 +2259,7 @@ q931_dissector(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, */ codeset = 0; /* start out in codeset 0 */ non_locking_shift = TRUE; - reported_length = tvb_reported_length(tvb); - while (offset < reported_length) { + while (tvb_reported_length_remaining(tvb, offset) > 0) { info_element = tvb_get_guint8(tvb, offset); /* |