From 3b47d231ac0e961cd84c0563d353fb6b59398bf9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 8 Jun 2010 10:35:06 +0200 Subject: TFTP: fix compiler warning Curl_fillreadbuffer()'s second argument takes an int, so typecasting to another is a bad idea. --- lib/tftp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tftp.c b/lib/tftp.c index c09aadc03..c02337f99 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, -- cgit v1.2.3