mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
remove spurious spaces & tabs at end of lines
This commit is contained in:
parent
edc19f202a
commit
60f292b18e
249 changed files with 8481 additions and 8481 deletions
|
@ -270,10 +270,10 @@ int CodeCmp(const char *code1, const char *code2) {
|
|||
}
|
||||
if (cmp == 4)
|
||||
return 0;
|
||||
|
||||
|
||||
if (cmp + xsymb == 4)
|
||||
return xsymb;
|
||||
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -282,17 +282,17 @@ const APDUCode* const GetAPDUCode(uint8_t sw1, uint8_t sw2) {
|
|||
int res;
|
||||
int mineq = APDUCodeTableLen;
|
||||
int mineqindx = 0;
|
||||
|
||||
|
||||
sprintf(buf, "%02X%02X", sw1, sw2);
|
||||
|
||||
|
||||
for (int i = 0; i < APDUCodeTableLen; i++) {
|
||||
res = CodeCmp(APDUCodeTable[i].ID, buf);
|
||||
|
||||
|
||||
// equal
|
||||
if (res == 0) {
|
||||
if (res == 0) {
|
||||
return &APDUCodeTable[i];
|
||||
}
|
||||
|
||||
|
||||
// with some 'X'
|
||||
if (res > 0 && mineq > res) {
|
||||
mineq = res;
|
||||
|
@ -304,7 +304,7 @@ const APDUCode* const GetAPDUCode(uint8_t sw1, uint8_t sw2) {
|
|||
if (mineqindx < APDUCodeTableLen) {
|
||||
return &APDUCodeTable[mineqindx];
|
||||
}
|
||||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue