summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-06-08 10:35:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-06-08 10:35:06 +0200
commit3b47d231ac0e961cd84c0563d353fb6b59398bf9 (patch)
treecdb60208f7cac18864c5a58f840820c2d59a5eb7
parent7977bc3dfa7ed77d0a76834d7f1134b3e4a5c9cd (diff)
downloadgnurl-3b47d231ac0e961cd84c0563d353fb6b59398bf9.tar.gz
gnurl-3b47d231ac0e961cd84c0563d353fb6b59398bf9.tar.bz2
gnurl-3b47d231ac0e961cd84c0563d353fb6b59398bf9.zip
TFTP: fix compiler warning
Curl_fillreadbuffer()'s second argument takes an int, so typecasting to another is a bad idea.
-rw-r--r--lib/tftp.c3
1 files changed, 1 insertions, 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,