From 1cfa4cd4271093b6bb43ecedec60a0d704f85c96 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 7 Jul 2017 11:52:48 +0200 Subject: curl_rtmp: fix a compiler warning The headers of librtmp declare the socket as `int`, and on Windows, that disagrees with curl_socket_t. Bug: #1652 Signed-off-by: Johannes Schindelin --- lib/curl_rtmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/curl_rtmp.c b/lib/curl_rtmp.c index 2d7ce5ed2..97430647b 100644 --- a/lib/curl_rtmp.c +++ b/lib/curl_rtmp.c @@ -206,7 +206,7 @@ static CURLcode rtmp_connect(struct connectdata *conn, bool *done) RTMP *r = conn->proto.generic; SET_RCVTIMEO(tv, 10); - r->m_sb.sb_socket = conn->sock[FIRSTSOCKET]; + r->m_sb.sb_socket = (int)conn->sock[FIRSTSOCKET]; /* We have to know if it's a write before we send the * connect request packet -- cgit v1.2.3