aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-06 22:06:08 +0100
committerMax Kellermann <max@duempel.org>2012-03-06 22:06:08 +0100
commit5016839b90274017696e0942f424d4f361d39ea2 (patch)
treee106c4f95f413b6b8252ff867586460cc63931c6 /test
parentfaf35e6082a8c685140820f334b5c4ecc9ce6666 (diff)
downloadmpd-5016839b90274017696e0942f424d4f361d39ea2.tar.gz
mpd-5016839b90274017696e0942f424d4f361d39ea2.tar.xz
mpd-5016839b90274017696e0942f424d4f361d39ea2.zip
use g_strerror() instead of strerror()
Make sure we get a UTF-8 encoded string.
Diffstat (limited to 'test')
-rw-r--r--test/run_filter.c2
-rw-r--r--test/signals.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/run_filter.c b/test/run_filter.c
index d1dffc190..8e793b768 100644
--- a/test/run_filter.c
+++ b/test/run_filter.c
@@ -183,7 +183,7 @@ int main(int argc, char **argv)
nbytes = write(1, dest, length);
if (nbytes < 0) {
- g_printerr("Failed to write: %s\n", strerror(errno));
+ g_printerr("Failed to write: %s\n", g_strerror(errno));
filter_close(filter);
filter_free(filter);
return 1;
diff --git a/test/signals.c b/test/signals.c
index 5f5d336f3..15761f6b0 100644
--- a/test/signals.c
+++ b/test/signals.c
@@ -39,7 +39,7 @@ static void
x_sigaction(int signum, const struct sigaction *act)
{
if (sigaction(signum, act, NULL) < 0)
- MPD_ERROR("sigaction() failed: %s", strerror(errno));
+ MPD_ERROR("sigaction() failed: %s", g_strerror(errno));
}
#endif