summaryrefslogtreecommitdiff
path: root/lib/curl_rtmp.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2017-07-07 11:52:48 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-07-28 16:41:29 +0200
commit1cfa4cd4271093b6bb43ecedec60a0d704f85c96 (patch)
tree646a48231da8f906d63288a230051b4c17a20f5b /lib/curl_rtmp.c
parent001822153201e1e9b0246bc64a3797eb18f5ed61 (diff)
downloadcurl-1cfa4cd4271093b6bb43ecedec60a0d704f85c96.tar.gz
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 <johannes.schindelin@gmx.de>
Diffstat (limited to 'lib/curl_rtmp.c')
-rw-r--r--lib/curl_rtmp.c2
1 files changed, 1 insertions, 1 deletions
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