tftp_rx: code style cleanup
Fixed checksrc warnings
This commit is contained in:
11
lib/tftp.c
11
lib/tftp.c
@@ -591,15 +591,14 @@ static CURLcode tftp_rx(tftp_state_data_t *state, tftp_event_t event)
|
|||||||
case TFTP_EVENT_DATA:
|
case TFTP_EVENT_DATA:
|
||||||
/* Is this the block we expect? */
|
/* Is this the block we expect? */
|
||||||
rblock = getrpacketblock(&state->rpacket);
|
rblock = getrpacketblock(&state->rpacket);
|
||||||
if( NEXT_BLOCKNUM(state->block) == rblock ) {
|
if(NEXT_BLOCKNUM(state->block) == rblock) {
|
||||||
/* This is the expected block. Reset counters and ACK it. */
|
/* This is the expected block. Reset counters and ACK it. */
|
||||||
state->retries = 0;
|
state->retries = 0;
|
||||||
}
|
}
|
||||||
else if( state->block == rblock ) {
|
else if(state->block == rblock) {
|
||||||
/* This is the last recently received block again. Log it and ACK it again. */
|
/* This is the last recently received block again. Log it and ACK it
|
||||||
infof(data,
|
again. */
|
||||||
"Received last DATA packet block %d again.\n",
|
infof(data, "Received last DATA packet block %d again.\n", rblock);
|
||||||
rblock);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* totally unexpected, just log it */
|
/* totally unexpected, just log it */
|
||||||
|
Reference in New Issue
Block a user