diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2012-09-28 23:57:04 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2012-10-04 19:17:00 +0200 |
commit | dee2ef8083342dc6141ede9ab39ef55bc00a56d5 (patch) | |
tree | 9caa49dd23c7e2ed840938d6c92ad29a5bf2aa9f /lib/curl_rtmp.c | |
parent | 50a7d32af05687eef53e58ad5314a6bea2fd6a3e (diff) | |
download | curl-dee2ef8083342dc6141ede9ab39ef55bc00a56d5.tar.gz |
krb5/curl_rtmp.c: Hide size_t to int type conversion warning
Diffstat (limited to 'lib/curl_rtmp.c')
-rw-r--r-- | lib/curl_rtmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/curl_rtmp.c b/lib/curl_rtmp.c index 725b8f995..b87bdf2c7 100644 --- a/lib/curl_rtmp.c +++ b/lib/curl_rtmp.c @@ -28,6 +28,7 @@ #include "nonblock.h" /* for curlx_nonblock */ #include "progress.h" /* for Curl_pgrsSetUploadSize */ #include "transfer.h" +#include "warnless.h" #include <curl/curl.h> #include <librtmp/rtmp.h> @@ -279,7 +280,7 @@ static ssize_t rtmp_recv(struct connectdata *conn, int sockindex, char *buf, (void)sockindex; /* unused */ - nread = RTMP_Read(r, buf, len); + nread = RTMP_Read(r, buf, curlx_uztosi(len)); if(nread < 0) { if(r->m_read.status == RTMP_READ_COMPLETE || r->m_read.status == RTMP_READ_EOF) { @@ -300,7 +301,7 @@ static ssize_t rtmp_send(struct connectdata *conn, int sockindex, (void)sockindex; /* unused */ - num = RTMP_Write(r, (char *)buf, len); + num = RTMP_Write(r, (char *)buf, curlx_uztosi(len)); if(num < 0) *err = CURLE_SEND_ERROR; |