diff options
author | Michael Mann <mmann78@netscape.net> | 2015-03-01 23:03:27 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-03-03 09:02:25 +0000 |
commit | b7ef891af868b6026391d3473c0b43e7229e5b31 (patch) | |
tree | 073d847595f777447f804937957324fcbae9c653 /epan/dissectors/packet-ansi_a.c | |
parent | 599dd4ffcc31bb03e44fd4ed72db4d6b8fbc38f0 (diff) |
Replace tvb_get_ptr calls with a better API choice.
Just reduces the overall tvb_get_ptr usage count in the dissector directory.
Change-Id: I455dc4cc9b082ecccdd254a2e5121f3353b5a812
Reviewed-on: https://code.wireshark.org/review/7491
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ansi_a.c')
-rw-r--r-- | epan/dissectors/packet-ansi_a.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ansi_a.c b/epan/dissectors/packet-ansi_a.c index 7cf1a4a7bf..b4f389650e 100644 --- a/epan/dissectors/packet-ansi_a.c +++ b/epan/dissectors/packet-ansi_a.c @@ -6358,7 +6358,6 @@ elem_is2000_cause(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint static guint8 elem_auth_event(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint32 offset, guint len, ansi_a_shared_data_t *data_p _U_) { - const guint8 *bytes_p; guint8 oct; guint32 curr_offset; const gchar *str; @@ -6380,10 +6379,8 @@ elem_auth_event(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint32 break; } - bytes_p = tvb_get_ptr(tvb, curr_offset, len); - proto_tree_add_bytes_format(tree, hf_ansi_a_auth_event, tvb, curr_offset, len, - bytes_p, + NULL, "%s", str); } |