diff options
author | Michael Mann <mmann78@netscape.net> | 2017-01-31 07:51:19 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-31 17:08:47 +0000 |
commit | 51a30142251e377ec28eb8584c56386c2481d6c0 (patch) | |
tree | 4a4667a656f60327647805022e5811b6f2c42052 /epan/dissectors/packet-gift.c | |
parent | 0165b8c40cfd6ca529408862095c1213bdf1ebd5 (diff) | |
download | wireshark-51a30142251e377ec28eb8584c56386c2481d6c0.tar.gz |
format_text_wmem -> format_text
All cases of the "original" format_text have been handled to add the
proper wmem allocator scope. Remove the "original" format_text
and replace it with one that has a wmem allocator as a parameter.
Change-Id: I278b93bcb4a17ff396413b75cd332f5fc2666719
Reviewed-on: https://code.wireshark.org/review/19884
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-gift.c')
-rw-r--r-- | epan/dissectors/packet-gift.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-gift.c b/epan/dissectors/packet-gift.c index a6af7a3b9a..9fb5f3a627 100644 --- a/epan/dissectors/packet-gift.c +++ b/epan/dissectors/packet-gift.c @@ -72,7 +72,7 @@ dissect_gift(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ /* set "Info" column text */ col_add_fstr(pinfo->cinfo, COL_INFO, "%s: %s", is_request ? "Request" : "Response", - format_text_wmem(wmem_packet_scope(), line, linelen)); + format_text(wmem_packet_scope(), line, linelen)); /* if tree != NULL, build protocol tree */ if (tree) { @@ -93,10 +93,10 @@ dissect_gift(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ if (tokenlen != 0) { if (is_request) { proto_tree_add_string(cmd_tree, hf_gift_request_cmd, tvb, offset, - tokenlen, format_text_wmem(wmem_packet_scope(), line, tokenlen)); + tokenlen, format_text(wmem_packet_scope(), line, tokenlen)); } else { proto_tree_add_string(cmd_tree, hf_gift_response_cmd, tvb, offset, - tokenlen, format_text_wmem(wmem_packet_scope(), line, tokenlen)); + tokenlen, format_text(wmem_packet_scope(), line, tokenlen)); } offset += (gint) (next_token - line); linelen -= (int) (next_token - line); @@ -106,10 +106,10 @@ dissect_gift(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ if (linelen != 0) { if (is_request) { proto_tree_add_string(cmd_tree, hf_gift_request_arg, tvb, offset, - linelen, format_text_wmem(wmem_packet_scope(), line, linelen)); + linelen, format_text(wmem_packet_scope(), line, linelen)); } else { proto_tree_add_string(cmd_tree, hf_gift_response_arg, tvb, offset, - linelen, format_text_wmem(wmem_packet_scope(), line, linelen)); + linelen, format_text(wmem_packet_scope(), line, linelen)); } } } |