mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
changes to silent compiler warnings with 64bit systems.
This commit is contained in:
parent
038fff6c9f
commit
1d5627b181
@ -703,7 +703,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event)
|
|||||||
state->state = TFTP_STATE_FIN;
|
state->state = TFTP_STATE_FIN;
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
res = Curl_fillreadbuffer(state->conn, state->blksize, &readcount);
|
res = Curl_fillreadbuffer(state->conn, (int)state->blksize, &readcount);
|
||||||
state->sbytes = readcount;
|
state->sbytes = readcount;
|
||||||
if(res)
|
if(res)
|
||||||
return res;
|
return res;
|
||||||
@ -839,7 +839,7 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
|
|||||||
|
|
||||||
/* alloc pkt buffers based on specified blksize */
|
/* alloc pkt buffers based on specified blksize */
|
||||||
if(conn->data->set.tftp_blksize) {
|
if(conn->data->set.tftp_blksize) {
|
||||||
blksize = conn->data->set.tftp_blksize;
|
blksize = (int)conn->data->set.tftp_blksize;
|
||||||
if(blksize > TFTP_BLKSIZE_MAX || blksize < TFTP_BLKSIZE_MIN )
|
if(blksize > TFTP_BLKSIZE_MAX || blksize < TFTP_BLKSIZE_MIN )
|
||||||
return CURLE_TFTP_ILLEGAL;
|
return CURLE_TFTP_ILLEGAL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user