]> granicus.if.org Git - curl/commitdiff
curl_rtmp: fix a compiler warning
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 7 Jul 2017 09:52:48 +0000 (11:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 28 Jul 2017 14:41:29 +0000 (16:41 +0200)
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 <johannes.schindelin@gmx.de>
lib/curl_rtmp.c

index 2d7ce5ed231b112ec7c00ad48c5eaa41ad3f7c4a..97430647bf649dfab8bdad7b82be6a9c93c67afe 100644 (file)
@@ -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