aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-02-04 14:26:00 +0100
committerMax Kellermann <max@duempel.org>2013-02-04 14:26:03 +0100
commit00baddcd9ece2f79b407d57a79902aa495cf6f88 (patch)
tree2242f2a9bc3e9a855b61464747cb52c964bf95ea /src
parent7e92820c501eef548ddcc64b345dfdbf82f708ad (diff)
downloadmpd-00baddcd9ece2f79b407d57a79902aa495cf6f88.tar.gz
mpd-00baddcd9ece2f79b407d57a79902aa495cf6f88.tar.xz
mpd-00baddcd9ece2f79b407d57a79902aa495cf6f88.zip
SocketUtil: add separators to g_prefix_error() call
Diffstat (limited to 'src')
-rw-r--r--src/SocketUtil.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SocketUtil.cxx b/src/SocketUtil.cxx
index 33ea4e2fe..dd7eb7dd2 100644
--- a/src/SocketUtil.cxx
+++ b/src/SocketUtil.cxx
@@ -49,7 +49,7 @@ socket_bind_listen(int domain, int type, int protocol,
fd = socket_cloexec_nonblock(domain, type, protocol);
if (fd < 0) {
SetSocketError(error_r);
- g_prefix_error(error_r, "Failed to create socket");
+ g_prefix_error(error_r, "Failed to create socket: ");
return -1;
}
@@ -57,7 +57,7 @@ socket_bind_listen(int domain, int type, int protocol,
(const char *) &reuse, sizeof(reuse));
if (ret < 0) {
SetSocketError(error_r);
- g_prefix_error(error_r, "setsockopt() failed");
+ g_prefix_error(error_r, "setsockopt() failed: ");
close_socket(fd);
return -1;
}
@@ -72,7 +72,7 @@ socket_bind_listen(int domain, int type, int protocol,
ret = listen(fd, backlog);
if (ret < 0) {
SetSocketError(error_r);
- g_prefix_error(error_r, "listen() failed");
+ g_prefix_error(error_r, "listen() failed: ");
close_socket(fd);
return -1;
}