aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbtest.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-23 17:30:22 -0700
committerEvan Huus <eapache@gmail.com>2015-06-24 00:31:25 +0000
commit9b5b7c1a9074c7d64bd07fe68377d9ad06ccbc2a (patch)
treefbb55ae5fdfb2799424c6ad919f0ef1c7429392d /epan/tvbtest.c
parent893e1e516ae58d662aeaec78f86838eb9d3246c5 (diff)
Remove deprecated tvb_length calls
Trust that the files in epan/ immediately (not dissectors) know what they're doing so just blindly convert them to captured length. Change-Id: I872f7d58b2e15ae82c75fd56f4873996fbc97be7 Reviewed-on: https://code.wireshark.org/review/9083 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/tvbtest.c')
-rw-r--r--epan/tvbtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbtest.c b/epan/tvbtest.c
index 0517c204b2..53a719dab1 100644
--- a/epan/tvbtest.c
+++ b/epan/tvbtest.c
@@ -46,7 +46,7 @@ test(tvbuff_t *tvb, const gchar* name,
guint32 expected32;
guint incr, i;
- length = tvb_length(tvb);
+ length = tvb_captured_length(tvb);
if (length != expected_length) {
printf("01: Failed TVB=%s Length of tvb=%u while expected length=%u\n",