aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-28 09:00:11 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-28 09:00:11 +0000
commitbd2648f6d0023b72d8d60eb331c0adede849a6c9 (patch)
treea97bda6f59cab16eea09e6e4caf2781785378177 /tools
parent7482c4230f17249aab6a65c73184549b017c06ac (diff)
Replace all strerror() with g_strerror().
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37812 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkAPIs.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 7d71be815d..3e0944daa8 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -96,6 +96,7 @@ my %APIs = (
'g_strdown',
'g_string_up',
'g_string_down',
+ 'strerror', # use g_strerror
# Use the ws_* version of these:
# (Necessary because on Windows we use UTF8 for throughout the code
# so we must tweak that to UTF16 before operating on the file. Code
@@ -115,7 +116,7 @@ my %APIs = (
# APIs that SHOULD NOT be used in Wireshark (any more)
'deprecated' => { 'count_errors' => 1, 'functions' => [
- 'perror', # Use strerror() and report messages in whatever
+ 'perror', # Use g_strerror() and report messages in whatever
# fashion is appropriate for the code in question.
'ctime', # Use abs_time_secs_to_str()
'dissector_add', # Use dissector_add_uint()