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-03 11:11:12 +0800
commitb4d7c0892ef5b329476a6c3689585ca60ca2d8b0 (patch)
treeafe0380f609d8cbcff02ce5426de5f91bec406bf /plugins
parent20533c3be54a4e3fcb0ab23a15744d3093f8ad6f (diff)
downloadgsoc2013-evolution-b4d7c0892ef5b329476a6c3689585ca60ca2d8b0.tar
gsoc2013-evolution-b4d7c0892ef5b329476a6c3689585ca60ca2d8b0.tar.gz
gsoc2013-evolution-b4d7c0892ef5b329476a6c3689585ca60ca2d8b0.tar.bz2
gsoc2013-evolution-b4d7c0892ef5b329476a6c3689585ca60ca2d8b0.tar.lz
gsoc2013-evolution-b4d7c0892ef5b329476a6c3689585ca60ca2d8b0.tar.xz
gsoc2013-evolution-b4d7c0892ef5b329476a6c3689585ca60ca2d8b0.tar.zst
gsoc2013-evolution-b4d7c0892ef5b329476a6c3689585ca60ca2d8b0.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;
}