aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checkAPIs.pl
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-09-05 17:53:42 +0200
committerMichael Mann <mmann78@netscape.net>2016-09-05 16:37:12 +0000
commit474199a974f89cf732c7809b68ed05d93741cb33 (patch)
tree53231ef43d0d250fe8ac2a9dda9e0320271fd0b8 /tools/checkAPIs.pl
parentba981aced8c64ff405cd42b071264e2d9791444a (diff)
checkAPI: add deprecated atoi.
Instead use ws_strtoi/u functions. atoi() doesn't make any kind of check so it should be avoided. ws_strtoi/u should be used instead of strtol & co., but they're still acceptable for some cases that deviate from the basic usage. Change-Id: I145ff4d8f893852e024c4ea8fc6a836b15bd2b0d Reviewed-on: https://code.wireshark.org/review/17502 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-xtools/checkAPIs.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index f78ce92baa..cd6864c1fe 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -143,6 +143,7 @@ my %APIs = (
'freopen',
'fstat',
'lseek',
+ 'atoi', # use wsutil/ws_strtoi.h function
# Misc
'tmpnam', # use mkstemp
'_snwprintf' # use StringCchPrintf