aboutsummaryrefslogtreecommitdiffstats
path: root/src/server_socket.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-19 21:04:19 +0200
committerMax Kellermann <max@duempel.org>2011-09-20 08:38:58 +0200
commitc476819cb1186770b1b7395851e394caac39cbc8 (patch)
tree7e2d236e71ac88238026bb8803bfa87121c00f1d /src/server_socket.c
parent77a56c7c5a1ab6bc0d76e0cf55f24071be7c4b5f (diff)
downloadmpd-c476819cb1186770b1b7395851e394caac39cbc8.tar.gz
mpd-c476819cb1186770b1b7395851e394caac39cbc8.tar.xz
mpd-c476819cb1186770b1b7395851e394caac39cbc8.zip
fd_util: add function close_socket()
Wrap close(), use closesocket() on WIN32/WinSock.
Diffstat (limited to 'src/server_socket.c')
-rw-r--r--src/server_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server_socket.c b/src/server_socket.c
index c10740676..b4114d2d9 100644
--- a/src/server_socket.c
+++ b/src/server_socket.c
@@ -253,7 +253,7 @@ server_socket_close(struct server_socket *ss)
continue;
g_source_remove(s->source_id);
- close(s->fd);
+ close_socket(s->fd);
s->fd = -1;
}
}