}
CURLcode Curl_cf_send(struct Curl_easy *data, int num,
- const void *mem, size_t len, bool eos,
+ const uint8_t *mem, size_t len, bool eos,
size_t *pnwritten)
{
struct Curl_cfilter *cf;
* in `*pnwritten` or on error.
*/
CURLcode Curl_cf_send(struct Curl_easy *data, int sockindex,
- const void *buf, size_t len, bool eos,
+ const uint8_t *buf, size_t len, bool eos,
size_t *pnwritten);
/**
}
static CURLcode rtmp_send(struct Curl_easy *data, int sockindex,
- const void *buf, size_t len, bool eos,
+ const uint8_t *buf, size_t len, bool eos,
size_t *pnwritten)
{
struct connectdata *conn = data->conn;
/* On error return, the value of `pnwritten` has no meaning */
typedef CURLcode (Curl_send)(struct Curl_easy *data, /* transfer */
int sockindex, /* socketindex */
- const void *buf, /* data to write */
+ const uint8_t *buf, /* data to write */
size_t len, /* amount to send */
bool eos, /* last chunk */
size_t *pnwritten); /* how much sent */
}
static CURLcode scp_send(struct Curl_easy *data, int sockindex,
- const void *mem, size_t len, bool eos,
+ const uint8_t *mem, size_t len, bool eos,
size_t *pnwritten)
{
int rc;
/* return number of sent bytes */
static CURLcode sftp_send(struct Curl_easy *data, int sockindex,
- const void *mem, size_t len, bool eos,
+ const uint8_t *mem, size_t len, bool eos,
size_t *pnwritten)
{
struct connectdata *conn = data->conn;
}
static CURLcode scp_send(struct Curl_easy *data, int sockindex,
- const void *mem, size_t len, bool eos,
+ const uint8_t *mem, size_t len, bool eos,
size_t *pnwritten)
{
struct connectdata *conn = data->conn;
return CURLE_FAILED_INIT;
/* libssh2_channel_write() returns int! */
- nwritten = (ssize_t) libssh2_channel_write(sshc->ssh_channel, mem, len);
+ nwritten = (ssize_t) libssh2_channel_write(sshc->ssh_channel,
+ (const char *)mem, len);
ssh_block2waitfor(data, sshc, (nwritten == LIBSSH2_ERROR_EAGAIN));
/* return number of sent bytes */
static CURLcode sftp_send(struct Curl_easy *data, int sockindex,
- const void *mem, size_t len, bool eos,
+ const uint8_t *mem, size_t len, bool eos,
size_t *pnwritten)
{
struct connectdata *conn = data->conn;
if(!sshc)
return CURLE_FAILED_INIT;
- nwrite = libssh2_sftp_write(sshc->sftp_handle, mem, len);
+ nwrite = libssh2_sftp_write(sshc->sftp_handle, (const char *)mem, len);
ssh_block2waitfor(data, sshc, (nwrite == LIBSSH2_ERROR_EAGAIN));