aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/SocketError.cxx
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/system/SocketError.cxx
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/system/SocketError.cxx')
-rw-r--r--src/system/SocketError.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system/SocketError.cxx b/src/system/SocketError.cxx
index 315a86e1f..bb1fa5abf 100644
--- a/src/system/SocketError.cxx
+++ b/src/system/SocketError.cxx
@@ -21,7 +21,7 @@
#include "SocketError.hxx"
#include "util/Domain.hxx"
-#include <glib.h>
+#include <string.h>
const Domain socket_domain("socket");
@@ -41,6 +41,6 @@ SocketErrorMessage::SocketErrorMessage(socket_error_t code)
#else
SocketErrorMessage::SocketErrorMessage(socket_error_t code)
- :msg(g_strerror(code)) {}
+ :msg(strerror(code)) {}
#endif