diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-06-08 10:35:06 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-06-08 10:35:06 +0200 |
commit | 3b47d231ac0e961cd84c0563d353fb6b59398bf9 (patch) | |
tree | cdb60208f7cac18864c5a58f840820c2d59a5eb7 | |
parent | 7977bc3dfa7ed77d0a76834d7f1134b3e4a5c9cd (diff) |
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.c | 3 |
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, |