struct SessionHandle *data = state->conn->data;
int sbytes;
int rblock;
+ int readcount;
CURLcode res = CURLE_OK;
struct SingleRequest *k = &data->req;
state->state = TFTP_STATE_FIN;
return CURLE_OK;
}
- res = Curl_fillreadbuffer(state->conn, state->blksize,
- (int *)&state->sbytes);
+ res = Curl_fillreadbuffer(state->conn, state->blksize, &readcount);
+ state->sbytes = readcount;
if(res)
return res;
sbytes = sendto(state->sockfd, (void *)state->spacket.data,