aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-15 18:30:25 +0100
committerMax Kellermann <max@duempel.org>2013-12-15 18:32:07 +0100
commit777844ae0c0c24720efc1288bb20f12b191e5bdf (patch)
tree8120bb3baeb666675c41e5101e84acb81fda4cf6 /src/command
parenta10a4ad90087a21439d08b145f1a8c449c7867de (diff)
downloadmpd-777844ae0c0c24720efc1288bb20f12b191e5bdf.tar.gz
mpd-777844ae0c0c24720efc1288bb20f12b191e5bdf.tar.xz
mpd-777844ae0c0c24720efc1288bb20f12b191e5bdf.zip
system/SocketError, ...: use strerror() instead of g_strerror()
Avoid GLib.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/CommandError.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/command/CommandError.cxx b/src/command/CommandError.cxx
index fc14d4a5d..c1ef09904 100644
--- a/src/command/CommandError.cxx
+++ b/src/command/CommandError.cxx
@@ -24,9 +24,8 @@
#include "util/Error.hxx"
#include "Log.hxx"
-#include <glib.h>
-
#include <assert.h>
+#include <string.h>
#include <errno.h>
CommandResult
@@ -38,7 +37,7 @@ print_playlist_result(Client &client, PlaylistResult result)
case PlaylistResult::ERRNO:
command_error(client, ACK_ERROR_SYSTEM, "%s",
- g_strerror(errno));
+ strerror(errno));
return CommandResult::ERROR;
case PlaylistResult::DENIED:
@@ -115,7 +114,7 @@ print_error(Client &client, const Error &error)
}
} else if (error.IsDomain(errno_domain)) {
command_error(client, ACK_ERROR_SYSTEM, "%s",
- g_strerror(error.GetCode()));
+ strerror(error.GetCode()));
return CommandResult::ERROR;
}