From ffd2c9258426fc2f153e5f69945c88a096d09b4e Mon Sep 17 00:00:00 2001 From: "osboxes.org" Date: Wed, 10 Apr 2019 09:46:01 +0200 Subject: [PATCH] style --- armsrc/iclass.c | 4 ++-- armsrc/mifareutil.c | 2 +- client/cliparser/argtable3.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/armsrc/iclass.c b/armsrc/iclass.c index 61961a3da..c77cf4d85 100644 --- a/armsrc/iclass.c +++ b/armsrc/iclass.c @@ -995,7 +995,7 @@ static bool GetIClassCommandFromReader(uint8_t *received, int *len, int maxLen) // clear RXRDY: uint8_t b = (uint8_t)AT91C_BASE_SSC->SSC_RHR; (void)b; - + while (!BUTTON_PRESS()) { WDT_HIT(); @@ -1799,7 +1799,7 @@ static int GetIClassAnswer(uint8_t *receivedResponse, int maxLen, int *samples, // clear RXRDY: uint8_t b = (uint8_t)AT91C_BASE_SSC->SSC_RHR; (void)b; - + while (!BUTTON_PRESS()) { WDT_HIT(); diff --git a/armsrc/mifareutil.c b/armsrc/mifareutil.c index 94ea29b03..1de6d95f8 100644 --- a/armsrc/mifareutil.c +++ b/armsrc/mifareutil.c @@ -18,7 +18,7 @@ void mf_crypto1_decryptEx(struct Crypto1State *pcs, uint8_t *data_in, int len, u for (int i = 0; i < len; i++) data_out[i] = crypto1_byte(pcs, 0x00, 0) ^ data_in[i]; } else { - uint8_t bt = 0; + uint8_t bt = 0; bt |= (crypto1_bit(pcs, 0, 0) ^ BIT(data_in[0], 0)) << 0; bt |= (crypto1_bit(pcs, 0, 0) ^ BIT(data_in[0], 1)) << 1; bt |= (crypto1_bit(pcs, 0, 0) ^ BIT(data_in[0], 2)) << 2; diff --git a/client/cliparser/argtable3.c b/client/cliparser/argtable3.c index e1bedbb4f..1d5c2d055 100644 --- a/client/cliparser/argtable3.c +++ b/client/cliparser/argtable3.c @@ -2963,16 +2963,16 @@ static int trex_class(TRex *exp) { if (*exp->_p++ == ']') { trex_error(exp, _SC("unfinished range")); } - + r = trex_newnode(exp, OP_RANGE); if (first > *exp->_p) { trex_error(exp, _SC("invalid range")); } - + if (exp->_nodes[first].type == OP_CCLASS) { trex_error(exp, _SC("cannot use character classes in ranges")); } - + exp->_nodes[r].left = exp->_nodes[first].type; t = trex_escapechar(exp); exp->_nodes[r].right = t; @@ -4548,7 +4548,7 @@ void arg_print_formatted(FILE *fp, const unsigned colwidth = (rmargin - lmargin) + 1; /* Someone doesn't like us... */ - if (line_end == line_start) { + if (line_end == line_start) { fprintf(fp, "%s\n", text); }