Commit 00baddcd authored by Max Kellermann's avatar Max Kellermann

SocketUtil: add separators to g_prefix_error() call

parent 7e92820c
...@@ -49,7 +49,7 @@ socket_bind_listen(int domain, int type, int protocol, ...@@ -49,7 +49,7 @@ socket_bind_listen(int domain, int type, int protocol,
fd = socket_cloexec_nonblock(domain, type, protocol); fd = socket_cloexec_nonblock(domain, type, protocol);
if (fd < 0) { if (fd < 0) {
SetSocketError(error_r); SetSocketError(error_r);
g_prefix_error(error_r, "Failed to create socket"); g_prefix_error(error_r, "Failed to create socket: ");
return -1; return -1;
} }
...@@ -57,7 +57,7 @@ socket_bind_listen(int domain, int type, int protocol, ...@@ -57,7 +57,7 @@ socket_bind_listen(int domain, int type, int protocol,
(const char *) &reuse, sizeof(reuse)); (const char *) &reuse, sizeof(reuse));
if (ret < 0) { if (ret < 0) {
SetSocketError(error_r); SetSocketError(error_r);
g_prefix_error(error_r, "setsockopt() failed"); g_prefix_error(error_r, "setsockopt() failed: ");
close_socket(fd); close_socket(fd);
return -1; return -1;
} }
...@@ -72,7 +72,7 @@ socket_bind_listen(int domain, int type, int protocol, ...@@ -72,7 +72,7 @@ socket_bind_listen(int domain, int type, int protocol,
ret = listen(fd, backlog); ret = listen(fd, backlog);
if (ret < 0) { if (ret < 0) {
SetSocketError(error_r); SetSocketError(error_r);
g_prefix_error(error_r, "listen() failed"); g_prefix_error(error_r, "listen() failed: ");
close_socket(fd); close_socket(fd);
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment