TFTP: fix compiler warning
Curl_fillreadbuffer()'s second argument takes an int, so typecasting to another is a bad idea.
This commit is contained in:
parent
7977bc3dfa
commit
3b47d231ac
@ -759,8 +759,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event)
|
|||||||
state->state = TFTP_STATE_FIN;
|
state->state = TFTP_STATE_FIN;
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
res = Curl_fillreadbuffer(state->conn, (size_t)state->blksize,
|
res = Curl_fillreadbuffer(state->conn, state->blksize, &state->sbytes);
|
||||||
&state->sbytes);
|
|
||||||
if(res)
|
if(res)
|
||||||
return res;
|
return res;
|
||||||
sbytes = sendto(state->sockfd, (void *)state->spacket.data,
|
sbytes = sendto(state->sockfd, (void *)state->spacket.data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user