aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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 /plugins
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 'plugins')
-rw-r--r--plugins/asn1/packet-asn1.c2
-rw-r--r--plugins/mate/mate_parser.l4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index b58e9cf3b2..e9fa38d71a 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -2906,7 +2906,7 @@ read_asn1_type_table(const char *filename)
data = g_malloc(size);
if (fread(data, size, 1, f) < 1) {
- g_warning("error reading %s, %s", filename, strerror(errno));
+ g_warning("error reading %s, %s", filename, g_strerror(errno));
}
fclose(f);
diff --git a/plugins/mate/mate_parser.l b/plugins/mate/mate_parser.l
index dd4646fcb6..4fb4b509e9 100644
--- a/plugins/mate/mate_parser.l
+++ b/plugins/mate/mate_parser.l
@@ -182,7 +182,7 @@ blk_cmnt_stop "*/"
yy_switch_to_buffer(include_stack[--include_stack_ptr] );
if (errno)
- g_string_append_printf(mc->config_error, "Mate parser: Could not open file: '%s': %s", yytext, strerror(errno) );
+ g_string_append_printf(mc->config_error, "Mate parser: Could not open file: '%s': %s", yytext, g_strerror(errno) );
} else {
@@ -292,7 +292,7 @@ extern gboolean mate_load_config(const gchar* filename, mate_config* matecfg) {
yyin = ws_fopen(filename,"r");
if (!yyin) {
- g_string_append_printf(mc->config_error,"Mate parser: Could not open file: '%s', error: %s", filename, strerror(errno) );
+ g_string_append_printf(mc->config_error,"Mate parser: Could not open file: '%s', error: %s", filename, g_strerror(errno) );
return FALSE;
}