aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checkAPIs.pl
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-03-15 20:50:33 +0000
committerBill Meier <wmeier@newsguy.com>2009-03-15 20:50:33 +0000
commit510a52b12899f70d185608061f51a8d178ae6af4 (patch)
tree253188db697a57c4c27aedb5111dff7507da80eb /tools/checkAPIs.pl
parent0defd072f58f236db0fc073b6c683bd13396ac9c (diff)
Treat any usage of functions in the 'deprecated' group an an Error.
There's no longer any Wireshark usage of these functions. svn path=/trunk/; revision=27732
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-xtools/checkAPIs.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 2e9e9cf936..d06df70266 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -74,7 +74,11 @@ my %APIs = (
# may not be freeable--at least on Windows--with g_free() and
# vice-versa.)
'malloc',
+ 'calloc',
+ 'realloc',
+ 'valloc',
'free',
+ 'cfree',
# Locale-unsafe APIs
# These may have unexpected behaviors in some locales (e.g.,
# "I" isn't always the upper-case form of "i", and "i" isn't
@@ -106,7 +110,7 @@ my %APIs = (
] },
# APIs that SHOULD NOT be used in Wireshark (any more)
- 'deprecated' => { 'count_errors' => 0, 'functions' => [
+ 'deprecated' => { 'count_errors' => 1, 'functions' => [
# Use strerror() and report messages in whatever
# fashion is appropriate for the code in question.
'perror',