From: ikarus Date: Mon, 26 Sep 2016 19:15:49 +0000 (+0200) Subject: Fixed all "misleading-indentation" warnings (fixes #187). X-Git-Tag: v3.0.0~77 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/294352747265506ba4ea3dc214c5b755203a783a Fixed all "misleading-indentation" warnings (fixes #187). --- diff --git a/armsrc/legicrf.c b/armsrc/legicrf.c index 074a0f78..27dcc297 100644 --- a/armsrc/legicrf.c +++ b/armsrc/legicrf.c @@ -391,7 +391,7 @@ int legic_write_byte(int byte, int addr, int addr_sz) { uint32_t cmd_sz = addr_sz+1+8+4; //crc+data+cmd legic_prng_forward(2); /* we wait anyways */ - while(timer->TC_CV < 387) ; /* ~ 258us */ + while(timer->TC_CV < 387) {}; /* ~ 258us */ frame_send_rwd(cmd, cmd_sz); //== wait for ack ==================================== @@ -418,7 +418,7 @@ int legic_write_byte(int byte, int addr, int addr_sz) { } } timer->TC_CCR = AT91C_TC_SWTRG; - while(timer->TC_CV > 1) ; /* Wait till the clock has reset */ + while(timer->TC_CV > 1) {}; /* Wait till the clock has reset */ return -1; } diff --git a/bootrom/bootrom.c b/bootrom/bootrom.c index c2c81a9d..bbea07b5 100644 --- a/bootrom/bootrom.c +++ b/bootrom/bootrom.c @@ -203,7 +203,7 @@ static void flash_mode(int externally_entered) size_t rx_len; usb_enable(); - for (volatile size_t i=0; i<0x100000; i++); + for (volatile size_t i=0; i<0x100000; i++) {}; for(;;) { WDT_HIT(); diff --git a/client/cmdhf14a.c b/client/cmdhf14a.c index 81716db3..ecf3ba03 100644 --- a/client/cmdhf14a.c +++ b/client/cmdhf14a.c @@ -696,14 +696,17 @@ int CmdHF14ACmdRaw(const char *cmd) { c.arg[2] = 13560000 / 1000 / (8*16) * timeout; // timeout in ETUs (time to transfer 1 bit, approx. 9.4 us) } - if(power) + if(power) { c.arg[0] |= ISO14A_NO_DISCONNECT; + } - if(datalen > 0) + if(datalen > 0) { c.arg[0] |= ISO14A_RAW; + } - if(topazmode) + if(topazmode) { c.arg[0] |= ISO14A_TOPAZMODE; + } // Max buffer is USB_CMD_DATA_SIZE c.arg[1] = (datalen & 0xFFFF) | (numbits << 16); diff --git a/common/lfdemod.c b/common/lfdemod.c index a6e979a2..7d40df3a 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -81,10 +81,9 @@ size_t removeParity(uint8_t *BitStream, size_t startIdx, uint8_t pLen, uint8_t p j--; // overwrite parity with next data // if parity fails then return 0 switch (pType) { - case 3: if (BitStream[j]==1) return 0; break; //should be 0 spacer bit - case 2: if (BitStream[j]==0) return 0; break; //should be 1 spacer bit - default: //test parity - if (parityTest(parityWd, pLen, pType) == 0) return 0; break; + case 3: if (BitStream[j]==1) {return 0;} break; //should be 0 spacer bit + case 2: if (BitStream[j]==0) {return 0;} break; //should be 1 spacer bit + default: if (parityTest(parityWd, pLen, pType) == 0) {return 0;} break; //test parity } bitCnt+=(pLen-1); parityWd = 0;