From: Daniel Stenberg Date: Fri, 16 Nov 2012 21:00:17 +0000 (+0100) Subject: tftp_rx: code style cleanup X-Git-Tag: curl-7_28_1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db4215f14a9ee2aca01315fa8cf100915284b15d;p=curl tftp_rx: code style cleanup Fixed checksrc warnings --- diff --git a/lib/tftp.c b/lib/tftp.c index 832302ed1..3beabb4a1 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -591,15 +591,14 @@ static CURLcode tftp_rx(tftp_state_data_t *state, tftp_event_t event) case TFTP_EVENT_DATA: /* Is this the block we expect? */ 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. */ state->retries = 0; } - else if( state->block == rblock ) { - /* This is the last recently received block again. Log it and ACK it again. */ - infof(data, - "Received last DATA packet block %d again.\n", - rblock); + else if(state->block == rblock) { + /* This is the last recently received block again. Log it and ACK it + again. */ + infof(data, "Received last DATA packet block %d again.\n", rblock); } else { /* totally unexpected, just log it */