diff options
author | Michael Mann <mmann78@netscape.net> | 2015-08-25 19:14:59 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-08-27 04:34:10 +0000 |
commit | 0af048b7e40ee92d6702df873cbc515ae2eff9c8 (patch) | |
tree | f980825d5b37ce5c5d322b149c122b0704edd6ff /tools | |
parent | 374439daa17fe2692746857b920616354ce658e7 (diff) | |
download | wireshark-0af048b7e40ee92d6702df873cbc515ae2eff9c8.tar.gz |
Remove calls of tvb_ensure_length_remaining.
The remaining calls seem to fall into 3 categories:
1. passing it to tvb_find_line_end when -1 (for length) will do.
2. duplicating the checking of tvb_reported_length_remaining, which is already in use near the tvb_ensure_length_remaining call.
3. Those that (probably) need tvb_ensure_capture_length_remaining
Change-Id: I1e77695251e055644bcbbb89f3c181c65d1671ca
Reviewed-on: https://code.wireshark.org/review/10268
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 448cb54d2a..db409b32b9 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -145,7 +145,6 @@ my %APIs = ( # once they've been removed from all existing code. 'soft-deprecated' => { 'count_errors' => 0, 'functions' => [ 'tvb_length_remaining', # replaced with tvb_captured_length_remaining - 'tvb_ensure_length_remaining', # replaced with tvb_ensure_captured_length_remaining 'tvb_get_string', # replaced with tvb_get_string_enc 'tvb_get_stringz', # replaced with tvb_get_stringz_enc 'proto_tree_add_text', # replaced with proto_tree_add_subtree[_format], expert_add_info[_format], or proto_tree_add_expert[_format] |