diff options
author | Michael Mann <mmann78@netscape.net> | 2015-09-20 22:20:40 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-09-21 14:11:43 +0000 |
commit | e2735ecfdd7a96ce909cf5e2be27da1d49d7b321 (patch) | |
tree | 51c278fbcca1a1f3fee295f8ef084110e78cd8ce /epan/expert.c | |
parent | 3b09a9e4570a876faec23ba7a1d8be8ac981f92a (diff) | |
download | wireshark-e2735ecfdd7a96ce909cf5e2be27da1d49d7b321.tar.gz |
Remove proto_tree_add_text API.
Its time has finally come.
Technically I just renamed it to proto_tree_add_text_internal and removed the WS_DLL_PUBLIC (so it shouldn't link outside of epan). It's still (legitimately) used by expert.c otherwise I would have made it static within proto.c (and the rename wouldn't have been necessary).
Change-Id: I9bdf888d5e92bc7b70a3f5461b9297a66d994b80
Reviewed-on: https://code.wireshark.org/review/10594
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/expert.c')
-rw-r--r-- | epan/expert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/expert.c b/epan/expert.c index f8017216c7..4a3d692f06 100644 --- a/epan/expert.c +++ b/epan/expert.c @@ -603,7 +603,7 @@ proto_tree_add_expert_internal(proto_tree *tree, packet_info *pinfo, expert_fiel /* Look up the item */ EXPERT_REGISTRAR_GET_NTH(expindex->ei, eiinfo); - ti = proto_tree_add_text(tree, tvb, start, length, "%s", eiinfo->summary); + ti = proto_tree_add_text_internal(tree, tvb, start, length, "%s", eiinfo->summary); va_start(unused, length); expert_set_info_vformat(pinfo, ti, eiinfo->group, eiinfo->severity, *eiinfo->hf_info.p_id, FALSE, eiinfo->summary, unused); va_end(unused); @@ -629,7 +629,7 @@ proto_tree_add_expert_format(proto_tree *tree, packet_info *pinfo, expert_field EXPERT_REGISTRAR_GET_NTH(expindex->ei, eiinfo); va_start(ap, format); - ti = proto_tree_add_text_valist(tree, tvb, start, length, format, ap); + ti = proto_tree_add_text_valist_internal(tree, tvb, start, length, format, ap); va_end(ap); va_start(ap, format); |