Skip to content
Snippets Groups Projects
Commit 3b47d231 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

TFTP: fix compiler warning

Curl_fillreadbuffer()'s second argument takes an int, so
typecasting to another is a bad idea.
parent 7977bc3d
No related branches found
No related tags found
No related merge requests found
......@@ -759,8 +759,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event)
state->state = TFTP_STATE_FIN;
return CURLE_OK;
}
res = Curl_fillreadbuffer(state->conn, (size_t)state->blksize,
&state->sbytes);
res = Curl_fillreadbuffer(state->conn, state->blksize, &state->sbytes);
if(res)
return res;
sbytes = sendto(state->sockfd, (void *)state->spacket.data,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment