Changelog
+- Julien Chaffraix fixed the warning seen when compiling lib/rtmp.c: one
+ unused variables, several unused arguments and some missing #include.
+
- Julien Chaffraix fixed 2 OOM errors: a missing NULL-check in
lib/http_negociate.c and a potential NULL dereferencing in lib/splay.c
#ifdef USE_LIBRTMP
#include "urldata.h"
+#include "nonblock.h" /* for curlx_nonblock */
+#include "progress.h" /* for Curl_pgrsSetUploadSize */
+#include "transfer.h"
#include <curl/curl.h>
#include <librtmp/rtmp.h>
static CURLcode rtmp_setup(struct connectdata *conn)
{
- int rc;
RTMP *r = RTMP_Alloc();
if (!r)
static CURLcode rtmp_done(struct connectdata *conn, CURLcode status,
bool premature)
{
+ (void)conn; /* unused */
+ (void)status; /* unused */
+ (void)premature; /* unused */
+
return CURLE_OK;
}
RTMP *r = conn->proto.generic;
ssize_t nread;
+ (void)sockindex; /* unused */
+
nread = RTMP_Read(r, buf, len);
if (nread < 0) {
if (r->m_read.status == RTMP_READ_COMPLETE ||
RTMP *r = conn->proto.generic;
ssize_t num;
+ (void)sockindex; /* unused */
+
num = RTMP_Write(r, (char *)buf, len);
if (num < 0) {
*err = CURLE_SEND_ERROR;