From: Johannes Schindelin Date: Fri, 7 Jul 2017 09:52:48 +0000 (+0200) Subject: curl_rtmp: fix a compiler warning X-Git-Tag: curl-7_55_0~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cfa4cd4271093b6bb43ecedec60a0d704f85c96;p=curl 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 --- 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