From: Daniel Stenberg Date: Tue, 8 Jun 2010 08:35:06 +0000 (+0200) Subject: TFTP: fix compiler warning X-Git-Tag: curl-7_21_0~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b47d231ac0e961cd84c0563d353fb6b59398bf9;p=thirdparty%2Fcurl.git TFTP: fix compiler warning Curl_fillreadbuffer()'s second argument takes an int, so typecasting to another is a bad idea. --- diff --git a/lib/tftp.c b/lib/tftp.c index c09aadc03e..c02337f99d 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -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,