diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-08-31 10:17:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-01 10:40:42 +0200 |
commit | 1a890997a47d4d22df58b5183181685e49ed6e61 (patch) | |
tree | d6510eb7592ca21eb554c23795c12daacccf1694 /lib/tftp.c | |
parent | 9dda13bbac1938c13ddf0a9cc4d9dd0302ff0331 (diff) | |
download | curl-1a890997a47d4d22df58b5183181685e49ed6e61.tar.gz |
all: s/int/size_t cleanup
Assisted-by: Rikard Falkeborn
Closes #2922
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 61a3fef06..e5bc80b02 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -712,7 +712,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) ssize_t sbytes; CURLcode result = CURLE_OK; struct SingleRequest *k = &data->req; - int cb; /* Bytes currently read */ + size_t cb; /* Bytes currently read */ switch(event) { @@ -765,7 +765,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) state->retries = 0; setpacketevent(&state->spacket, TFTP_EVENT_DATA); setpacketblock(&state->spacket, state->block); - if(state->block > 1 && state->sbytes < (int)state->blksize) { + if(state->block > 1 && state->sbytes < state->blksize) { state->state = TFTP_STATE_FIN; return CURLE_OK; } @@ -781,7 +781,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) &cb); if(result) return result; - state->sbytes += cb; + state->sbytes += (int)cb; state->conn->data->req.upload_fromhere += cb; } while(state->sbytes < state->blksize && cb != 0); |