aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sa-junk-plugin
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-03 11:11:12 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-04 00:47:50 +0800
commitdef73166fcfd6b5517592ec6d04a8eb3871bd1f7 (patch)
treed2d62d7c5a5a43ffd8b07cedde249eef7cb2c218 /plugins/sa-junk-plugin
parent4491d3ffd8dee15a3ba71dde5eb234806b121fdf (diff)
downloadgsoc2013-evolution-def73166fcfd6b5517592ec6d04a8eb3871bd1f7.tar
gsoc2013-evolution-def73166fcfd6b5517592ec6d04a8eb3871bd1f7.tar.gz
gsoc2013-evolution-def73166fcfd6b5517592ec6d04a8eb3871bd1f7.tar.bz2
gsoc2013-evolution-def73166fcfd6b5517592ec6d04a8eb3871bd1f7.tar.lz
gsoc2013-evolution-def73166fcfd6b5517592ec6d04a8eb3871bd1f7.tar.xz
gsoc2013-evolution-def73166fcfd6b5517592ec6d04a8eb3871bd1f7.tar.zst
gsoc2013-evolution-def73166fcfd6b5517592ec6d04a8eb3871bd1f7.zip
Bug 572977 – Use g_strerror() instead of strerror()
Diffstat (limited to 'plugins/sa-junk-plugin')
-rw-r--r--plugins/sa-junk-plugin/em-junk-filter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c
index fb30833080..5114e9b386 100644
--- a/plugins/sa-junk-plugin/em-junk-filter.c
+++ b/plugins/sa-junk-plugin/em-junk-filter.c
@@ -141,16 +141,16 @@ pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err,
if (pipe (fds) == -1) {
errnosav = errno;
- d(printf ("failed to create a pipe (for use with SpamAssassin: %s\n", strerror (errno)));
- g_set_error (error, EM_JUNK_ERROR, errnosav, _("Failed to create pipe: %s"), strerror (errnosav));
+ d(printf ("failed to create a pipe (for use with SpamAssassin: %s\n", g_strerror (errno)));
+ g_set_error (error, EM_JUNK_ERROR, errnosav, _("Failed to create pipe: %s"), g_strerror (errnosav));
errno = errnosav;
return rv_err;
}
if (output_buffer && pipe (out_fds) == -1) {
errnosav = errno;
- d(printf ("failed to create a pipe (for use with SpamAssassin: %s\n", strerror (errno)));
- g_set_error (error, EM_JUNK_ERROR, errnosav, _("Failed to create pipe: %s"), strerror (errnosav));
+ d(printf ("failed to create a pipe (for use with SpamAssassin: %s\n", g_strerror (errno)));
+ g_set_error (error, EM_JUNK_ERROR, errnosav, _("Failed to create pipe: %s"), g_strerror (errnosav));
close (fds [0]);
close (fds [1]);
errno = errnosav;
@@ -189,7 +189,7 @@ pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err,
close (out_fds [1]);
}
if (errnosav != 0 && errnosav != -1)
- g_set_error (error, EM_JUNK_ERROR, errnosav, _("Error after fork: %s"), strerror (errnosav));
+ g_set_error (error, EM_JUNK_ERROR, errnosav, _("Error after fork: %s"), g_strerror (errnosav));
errno = errnosav;
return rv_err;
}