aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-adwin-config.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-09-08 21:59:38 -0400
committerAnders Broman <a.broman58@gmail.com>2014-09-10 07:54:00 +0000
commitf9d4e0a815cf9c8f1fe5a5a106fcce3755daf8f2 (patch)
treef3abbec56de906935bd40771c4be791e6fb695ea /epan/dissectors/packet-adwin-config.c
parent1bf82c3b64b798eb3df99d24819fc8a961d7dbe0 (diff)
Replace deprecated tvb_length calls
And a few other misc. cleanups while in the neighbourhood. Change-Id: Ic0d6836dec9c36d31ea244a6adc74d4713565090 Reviewed-on: https://code.wireshark.org/review/4047 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-adwin-config.c')
-rw-r--r--epan/dissectors/packet-adwin-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-adwin-config.c b/epan/dissectors/packet-adwin-config.c
index 4230f8e9fe..a070dec911 100644
--- a/epan/dissectors/packet-adwin-config.c
+++ b/epan/dissectors/packet-adwin-config.c
@@ -362,10 +362,10 @@ dissect_TCPFlashUpdate(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
offset += 4;
proto_tree_add_item(adwin_tree, hf_adwin_config_unused, tvb, offset, 128, ENC_NA);
offset += 128;
- length = tvb_length(tvb) - offset;
+ length = tvb_captured_length_remaining(tvb, offset);
proto_tree_add_item(adwin_tree, hf_adwin_config_data, tvb, offset, length, ENC_NA);
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
/* 00:50:c2:0a:2*:** */