aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtsp_client.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:48:48 +0200
commit76a959a578c1039235988d886bcf335fff0c85f1 (patch)
tree9c0026cff0f157fdf784945ef5b30ada536944ed /src/rtsp_client.c
parentf43873dc5fc845d4a195ea8b2328fcc9ae3565b1 (diff)
downloadmpd-76a959a578c1039235988d886bcf335fff0c85f1.tar.gz
mpd-76a959a578c1039235988d886bcf335fff0c85f1.tar.xz
mpd-76a959a578c1039235988d886bcf335fff0c85f1.zip
rtsp_client, output/raop: use close_socket() instead of close()
Diffstat (limited to 'src/rtsp_client.c')
-rw-r--r--src/rtsp_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rtsp_client.c b/src/rtsp_client.c
index a808ef207..864b3a7f4 100644
--- a/src/rtsp_client.c
+++ b/src/rtsp_client.c
@@ -21,8 +21,10 @@
* Based on the RTSP client by Shiro Ninomiya <shiron@snino.com>
*/
+#include "config.h"
#include "rtsp_client.h"
#include "tcp_socket.h"
+#include "fd_util.h"
#include "glib_compat.h"
#include <assert.h>
@@ -164,7 +166,7 @@ open_tcp_socket(char *hostname, unsigned short *port,
return -1;
}
if (bind_host(sd, hostname, 0, port, error_r)) {
- close(sd);
+ close_socket(sd);
return -1;
}