aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/follow_stream.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-06-28 09:00:11 +0000
commit8443bbbf757ab65be172b294ff7c32cf93453de8 (patch)
treea97bda6f59cab16eea09e6e4caf2781785378177 /gtk/follow_stream.c
parent6c094f6775a72ab2cf362cc5b172393a97dd68f5 (diff)
Replace all strerror() with g_strerror().
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
Diffstat (limited to 'gtk/follow_stream.c')
-rw-r--r--gtk/follow_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/follow_stream.c b/gtk/follow_stream.c
index cbc672dbe8..15a454184e 100644
--- a/gtk/follow_stream.c
+++ b/gtk/follow_stream.c
@@ -503,7 +503,7 @@ follow_print_stream(GtkWidget * w _U_, gpointer data)
} else {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
"Error writing to print command: %s",
- strerror(errno));
+ g_strerror(errno));
}
/* XXX - cancel printing? */
destroy_print_stream(stream);
@@ -941,7 +941,7 @@ follow_destroy_cb(GtkWidget *w, gpointer data _U_)
case FOLLOW_TCP :
i = ws_unlink(follow_info->data_out_filename);
if(i != 0) {
- g_warning("Follow: Couldn't remove temporary file: \"%s\", errno: %s (%u)", follow_info->data_out_filename, strerror(errno), errno);
+ g_warning("Follow: Couldn't remove temporary file: \"%s\", errno: %s (%u)", follow_info->data_out_filename, g_strerror(errno), errno);
}
break;