diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-21 06:48:58 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-06-21 22:38:59 +0000 |
commit | ebc8ec83fdaefd6253aeb8db587f2d3b413fc340 (patch) | |
tree | 54c523d543a8e2ea7866e13ba062e2524202fa23 /epan/dissectors/packet-wtp.c | |
parent | a2e2c1f99783b5ad1048e9bba5b7a2834680b5fd (diff) |
Remove deprecated tvb_length from a bunch of dissectors
Change-Id: I5c777806cb1403062a9d85261149d722df57b239
Reviewed-on: https://code.wireshark.org/review/9005
Reviewed-by: Evan Huus <eapache@gmail.com>
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-wtp.c')
-rw-r--r-- | epan/dissectors/packet-wtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-wtp.c b/epan/dissectors/packet-wtp.c index 4ca431b9d4..f356b9bbee 100644 --- a/epan/dissectors/packet-wtp.c +++ b/epan/dissectors/packet-wtp.c @@ -276,7 +276,7 @@ wtp_handle_tpi(proto_tree *tree, tvbuff_t *tvb) else tLen = tByte & 0x03; pi = proto_tree_add_uint(tree, hf_wtp_tpi_type, - tvb, 0, tvb_length(tvb), tType); + tvb, 0, tvb_captured_length(tvb), tType); subTree = proto_item_add_subtree(pi, ett_tpilist); switch (tType) { case 0x00: /* Error*/ @@ -400,7 +400,7 @@ dissect_wtp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) printf("WTP packet %u: tree = %p, pdu = %s (%u) length: %u\n", pinfo->fd->num, tree, val_to_str(pdut, vals_wtp_pdu_type, "Unknown PDU type 0x%x"), - pdut, tvb_length(tvb)); + pdut, tvb_captured_length(tvb)); #endif /* Develop the string to put in the Info column */ |