tftp_rx: code style cleanup
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Nov 2012 21:00:17 +0000 (22:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Nov 2012 21:00:17 +0000 (22:00 +0100)
Fixed checksrc warnings

lib/tftp.c

index 832302ed1b79a4bd9d9ee68c0d4ec399c6af2145..3beabb4a194dd280bb0e9e16a1c1a1f68cd7192f 100644 (file)
@@ -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 */