aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
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')
-rw-r--r--plugins/ipod-sync/sync.c2
-rw-r--r--plugins/sa-junk-plugin/em-junk-filter.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ipod-sync/sync.c b/plugins/ipod-sync/sync.c
index a444af1bd9..42f3bdfa0b 100644
--- a/plugins/ipod-sync/sync.c
+++ b/plugins/ipod-sync/sync.c
@@ -184,7 +184,7 @@ write_to_ipod (GString *str, char *path, char *filename)
if (f == NULL)
{
- critical_error (_("Could not export data!"), strerror (errno));
+ critical_error (_("Could not export data!"), g_strerror (errno));
}
/* Convert the input string into UTF16 */
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;
}