From 1b2601a48ae3a160aae9ed6de2c06b0b2f6d8337 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 12 Mar 2019 00:12:26 +0100 Subject: [PATCH] Add missing EOF LF --- armsrc/Standalone/hf_mattyrun.c | 2 +- armsrc/Standalone/hf_mattyrun.h | 2 +- armsrc/Standalone/hf_young.c | 2 +- armsrc/Standalone/hf_young.h | 2 +- armsrc/Standalone/lf_hidbrute.h | 2 +- armsrc/Standalone/lf_proxbrute.c | 2 +- armsrc/Standalone/lf_proxbrute.h | 2 +- armsrc/Standalone/lf_samyrun.c | 2 +- armsrc/Standalone/lf_samyrun.h | 2 +- armsrc/Standalone/standalone.h | 2 +- armsrc/aes.c | 2 +- armsrc/aes.h | 2 +- armsrc/buzzer.c | 2 +- armsrc/desfire_crypto.c | 2 +- armsrc/desfire_key.c | 2 +- armsrc/desfire_key.h | 2 +- armsrc/flashmem.h | 2 +- armsrc/iclass.c | 2 +- armsrc/iso14443b.c | 2 +- armsrc/iso15693.c | 2 +- armsrc/mifarecmd.c | 2 +- armsrc/mifarecmd.h | 2 +- armsrc/mifaresniff.c | 2 +- armsrc/mifaresniff.h | 2 +- armsrc/pcf7931.c | 2 +- armsrc/pcf7931.h | 2 +- armsrc/start.c | 2 +- armsrc/string.h | 2 +- armsrc/ticks.h | 2 +- client/cmdcrc.c | 2 +- client/cmdflashmem.h | 2 +- client/cmdhf15.c | 2 +- client/cmdhfepa.c | 2 +- client/cmdhffelica.c | 2 +- client/cmdhffido.h | 2 +- client/cmdhflegic.c | 2 +- client/cmdhflist.c | 2 +- client/cmdhfmfdesfire.h | 2 +- client/cmdhfmfp.h | 2 +- client/cmdmain.c | 2 +- client/cmdscript.c | 2 +- client/cmdsmartcard.h | 2 +- client/emv/emvjson.h | 2 +- client/hardnested/hardnested_tables.c | 2 +- client/loclass/elite_crack.c | 2 +- client/lualibs/7816_error.lua | 2 +- client/lualibs/hf_reader.lua | 2 +- client/lualibs/precalc.lua | 2 +- client/lualibs/read14b.lua | 2 +- client/lualibs/taglib.lua | 2 +- client/lualibs/utils.lua | 2 +- client/mifare/mifarehost.h | 2 +- client/pm3_eml_mfd_test.py | 2 +- client/reveng/preset.c | 2 +- client/scandir.h | 2 +- client/scripting.c | 2 +- client/scripts/Legic_clone.lua | 2 +- client/scripts/brutesim.lua | 2 +- client/scripts/calc_di.lua | 2 +- client/scripts/calc_ev1_it.lua | 2 +- client/scripts/calc_mizip.lua | 2 +- client/scripts/calypso.lua | 2 +- client/scripts/e.lua | 2 +- client/scripts/emul2dump.lua | 2 +- client/scripts/emul2html.lua | 2 +- client/scripts/formatMifare.lua | 2 +- client/scripts/hf_read.lua | 2 +- client/scripts/htmldump.lua | 2 +- client/scripts/lf_bulk.lua | 2 +- client/scripts/mfkeys.lua | 2 +- client/scripts/ndef_dump.lua | 2 +- client/scripts/ntag_3d.lua | 2 +- client/scripts/parameters.lua | 2 +- client/scripts/test_t55x7_ask.lua | 2 +- client/scripts/test_t55x7_fsk.lua | 2 +- client/scripts/tnp3dump.lua | 2 +- client/scripts/tnp3sim.lua | 2 +- client/scripts/tracetest.lua | 2 +- client/scripts/ufodump.lua | 2 +- client/util.c | 2 +- client/util.h | 2 +- client/util_darwin.h | 2 +- common/bucketsort.h | 2 +- common/cmd.c | 2 +- common/crc.c | 2 +- common/crc16.h | 2 +- common/crc32.c | 2 +- common/crc64.c | 2 +- common/i2c.h | 2 +- common/iso15693tools.c | 2 +- common/iso15693tools.h | 2 +- common/legic_prng.c | 2 +- common/prng.h | 2 +- common/radixsort.c | 2 +- common/radixsort.h | 2 +- common/random.h | 2 +- common/tea.h | 2 +- common/usart.c | 2 +- common/usb_cdc.c | 2 +- common/wiegand.c | 2 +- include/common.h | 2 +- tools/Makefile | 2 +- tools/findbits_test.py | 2 +- tools/mkversion.pl | 6 +++--- uart/uart_win32.c | 2 +- 105 files changed, 107 insertions(+), 107 deletions(-) diff --git a/armsrc/Standalone/hf_mattyrun.c b/armsrc/Standalone/hf_mattyrun.c index bf4b71d61..8cac76c35 100644 --- a/armsrc/Standalone/hf_mattyrun.c +++ b/armsrc/Standalone/hf_mattyrun.c @@ -433,4 +433,4 @@ void RunMod() { } } } -} \ No newline at end of file +} diff --git a/armsrc/Standalone/hf_mattyrun.h b/armsrc/Standalone/hf_mattyrun.h index 8b33e67c5..6602eba54 100644 --- a/armsrc/Standalone/hf_mattyrun.h +++ b/armsrc/Standalone/hf_mattyrun.h @@ -20,4 +20,4 @@ #define OPTS 2 -#endif /* __HF_MATTYRUN_H */ \ No newline at end of file +#endif /* __HF_MATTYRUN_H */ diff --git a/armsrc/Standalone/hf_young.c b/armsrc/Standalone/hf_young.c index 99af4ef1e..4b7a87e99 100644 --- a/armsrc/Standalone/hf_young.c +++ b/armsrc/Standalone/hf_young.c @@ -259,4 +259,4 @@ void RunMod() { LED(selected + 1, 0); } } -} \ No newline at end of file +} diff --git a/armsrc/Standalone/hf_young.h b/armsrc/Standalone/hf_young.h index 46c0d1361..dcd8b13e7 100644 --- a/armsrc/Standalone/hf_young.h +++ b/armsrc/Standalone/hf_young.h @@ -19,4 +19,4 @@ #define OPTS 2 -#endif /* __HF_YOUNG_H */ \ No newline at end of file +#endif /* __HF_YOUNG_H */ diff --git a/armsrc/Standalone/lf_hidbrute.h b/armsrc/Standalone/lf_hidbrute.h index bc1cf2e31..49b0af6c6 100644 --- a/armsrc/Standalone/lf_hidbrute.h +++ b/armsrc/Standalone/lf_hidbrute.h @@ -21,4 +21,4 @@ void hid_corporate_1000_calculate_checksum_and_set(uint32_t *high, uint32_t *low, uint32_t cardnum, uint32_t fc); -#endif /* __LF_HIDBRUTE_H */ \ No newline at end of file +#endif /* __LF_HIDBRUTE_H */ diff --git a/armsrc/Standalone/lf_proxbrute.c b/armsrc/Standalone/lf_proxbrute.c index ea1bd1f6f..178ce98fb 100644 --- a/armsrc/Standalone/lf_proxbrute.c +++ b/armsrc/Standalone/lf_proxbrute.c @@ -164,4 +164,4 @@ void RunMod() { out: DbpString("[=] exiting"); LEDsoff(); -} \ No newline at end of file +} diff --git a/armsrc/Standalone/lf_proxbrute.h b/armsrc/Standalone/lf_proxbrute.h index 3911fee35..3a9e1ce29 100644 --- a/armsrc/Standalone/lf_proxbrute.h +++ b/armsrc/Standalone/lf_proxbrute.h @@ -18,4 +18,4 @@ #define OPTS 2 -#endif /* __LF_PROXBRUTE_H */ \ No newline at end of file +#endif /* __LF_PROXBRUTE_H */ diff --git a/armsrc/Standalone/lf_samyrun.c b/armsrc/Standalone/lf_samyrun.c index ec0e4d19e..b4530fa2f 100644 --- a/armsrc/Standalone/lf_samyrun.c +++ b/armsrc/Standalone/lf_samyrun.c @@ -138,4 +138,4 @@ void RunMod() { out: DbpString("[=] exiting"); LEDsoff(); -} \ No newline at end of file +} diff --git a/armsrc/Standalone/lf_samyrun.h b/armsrc/Standalone/lf_samyrun.h index cf21e1261..52c0bb942 100644 --- a/armsrc/Standalone/lf_samyrun.h +++ b/armsrc/Standalone/lf_samyrun.h @@ -19,4 +19,4 @@ #define OPTS 2 -#endif /* __LF_SAMYRUN_H */ \ No newline at end of file +#endif /* __LF_SAMYRUN_H */ diff --git a/armsrc/Standalone/standalone.h b/armsrc/Standalone/standalone.h index 53d5ff13d..980bcbf46 100644 --- a/armsrc/Standalone/standalone.h +++ b/armsrc/Standalone/standalone.h @@ -16,4 +16,4 @@ extern void RunMod(); -#endif /* __STANDALONE_H */ \ No newline at end of file +#endif /* __STANDALONE_H */ diff --git a/armsrc/aes.c b/armsrc/aes.c index 61a8da76b..f8a36f28c 100644 --- a/armsrc/aes.c +++ b/armsrc/aes.c @@ -1167,4 +1167,4 @@ int main() { return 0; } -#endif \ No newline at end of file +#endif diff --git a/armsrc/aes.h b/armsrc/aes.h index afe7e5e4e..aa9f0c582 100644 --- a/armsrc/aes.h +++ b/armsrc/aes.h @@ -31,4 +31,4 @@ int AesCtxIni(AesCtx *pCtx, unsigned char *pIV, unsigned char *pKey, unsigned in int AesEncrypt(AesCtx *pCtx, unsigned char *pData, unsigned char *pCipher, unsigned int DataLen); int AesDecrypt(AesCtx *pCtx, unsigned char *pCipher, unsigned char *pData, unsigned int CipherLen); -#endif \ No newline at end of file +#endif diff --git a/armsrc/buzzer.c b/armsrc/buzzer.c index 27d0cd12a..708b7d3f7 100644 --- a/armsrc/buzzer.c +++ b/armsrc/buzzer.c @@ -83,4 +83,4 @@ void Ring_Little_Star(uint16_t count) { Ring_BEE_TIME(note_1,2*count); LED_B_ON(); */ -} \ No newline at end of file +} diff --git a/armsrc/desfire_crypto.c b/armsrc/desfire_crypto.c index 0a23305fd..fd3f30d0d 100644 --- a/armsrc/desfire_crypto.c +++ b/armsrc/desfire_crypto.c @@ -630,4 +630,4 @@ void mifare_cypher_blocks_chained(desfiretag_t tag, desfirekey_t key, uint8_t *i mifare_cypher_single_block(key, data + offset, ivect, direction, operation, block_size); offset += block_size; } -} \ No newline at end of file +} diff --git a/armsrc/desfire_key.c b/armsrc/desfire_key.c index a723a203e..e1f880c8b 100644 --- a/armsrc/desfire_key.c +++ b/armsrc/desfire_key.c @@ -152,4 +152,4 @@ void Desfire_session_key_new(const uint8_t rnda[], const uint8_t rndb[], desfire Desfire_aes_key_new(buffer, key); break; } -} \ No newline at end of file +} diff --git a/armsrc/desfire_key.h b/armsrc/desfire_key.h index adbda9c42..4fc02854e 100644 --- a/armsrc/desfire_key.h +++ b/armsrc/desfire_key.h @@ -17,4 +17,4 @@ void Desfire_aes_key_new_with_version(const uint8_t value[16], uint8_t version, uint8_t Desfire_key_get_version(desfirekey_t key); void Desfire_key_set_version(desfirekey_t key, uint8_t version); void Desfire_session_key_new(const uint8_t rnda[], const uint8_t rndb[], desfirekey_t authkey, desfirekey_t key); -#endif \ No newline at end of file +#endif diff --git a/armsrc/flashmem.h b/armsrc/flashmem.h index 4af499d3a..f4258a11b 100644 --- a/armsrc/flashmem.h +++ b/armsrc/flashmem.h @@ -151,4 +151,4 @@ void Flashmem_print_status(void); -#endif \ No newline at end of file +#endif diff --git a/armsrc/iclass.c b/armsrc/iclass.c index 7bd725eab..e14a3c145 100644 --- a/armsrc/iclass.c +++ b/armsrc/iclass.c @@ -2456,4 +2456,4 @@ void iClass_Clone(uint8_t startblock, uint8_t endblock, uint8_t *data) { cmd_send(CMD_ACK, 1, 0, 0, 0, 0); switch_off(); -} \ No newline at end of file +} diff --git a/armsrc/iso14443b.c b/armsrc/iso14443b.c index 5b6a85477..57433c682 100644 --- a/armsrc/iso14443b.c +++ b/armsrc/iso14443b.c @@ -1634,4 +1634,4 @@ out: switch_off(); // disconnect raw SpinDelay(20); } -} \ No newline at end of file +} diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index b6d53ccea..9959f1ef0 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -999,4 +999,4 @@ void DirectTag15693Command(uint32_t datalen, uint32_t speed, uint32_t recv, uint } else { cmd_send(CMD_ACK, 1, 0, 0, 0, 0); } -} \ No newline at end of file +} diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index 1f1932e27..cca5d137a 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -2098,4 +2098,4 @@ void Mifare_DES_Auth2(uint32_t arg0, uint8_t *datain) { FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); LEDsoff(); set_tracing(false); -} \ No newline at end of file +} diff --git a/armsrc/mifarecmd.h b/armsrc/mifarecmd.h index 595d46395..51ed76ca5 100644 --- a/armsrc/mifarecmd.h +++ b/armsrc/mifarecmd.h @@ -25,4 +25,4 @@ #include "crc.h" #include "protocols.h" #include "parity.h" -#endif \ No newline at end of file +#endif diff --git a/armsrc/mifaresniff.c b/armsrc/mifaresniff.c index 8f391207e..0e75aac35 100644 --- a/armsrc/mifaresniff.c +++ b/armsrc/mifaresniff.c @@ -322,4 +322,4 @@ void RAMFUNC MfSniffSend() { LED_B_ON(); cmd_send(CMD_ACK, 2, 0, 0, 0, 0); // 2 == data transfer finished. LED_B_OFF(); -} \ No newline at end of file +} diff --git a/armsrc/mifaresniff.h b/armsrc/mifaresniff.h index debfd5a09..9b5cb8609 100644 --- a/armsrc/mifaresniff.h +++ b/armsrc/mifaresniff.h @@ -39,4 +39,4 @@ bool RAMFUNC MfSniffLogic(const uint8_t *data, uint16_t len, uint8_t *parity, ui void RAMFUNC MfSniffSend(void); void MfSniffEnd(void); -#endif \ No newline at end of file +#endif diff --git a/armsrc/pcf7931.c b/armsrc/pcf7931.c index ef371b233..90a6f5d64 100644 --- a/armsrc/pcf7931.c +++ b/armsrc/pcf7931.c @@ -518,4 +518,4 @@ bool AddPatternPCF7931(uint32_t a, uint32_t b, uint32_t c, uint32_t *tab) { tab[u + 2] = c + tab[u + 1]; return 0; -} \ No newline at end of file +} diff --git a/armsrc/pcf7931.h b/armsrc/pcf7931.h index bed33dadc..b8121c29f 100644 --- a/armsrc/pcf7931.h +++ b/armsrc/pcf7931.h @@ -17,4 +17,4 @@ bool AddBitPCF7931(bool b, uint32_t *tab, int32_t l, int32_t p); bool AddPatternPCF7931(uint32_t a, uint32_t b, uint32_t c, uint32_t *tab); void WritePCF7931(uint8_t pass1, uint8_t pass2, uint8_t pass3, uint8_t pass4, uint8_t pass5, uint8_t pass6, uint8_t pass7, uint16_t init_delay, int32_t l, int32_t p, uint8_t address, uint8_t byte, uint8_t data); -#endif \ No newline at end of file +#endif diff --git a/armsrc/start.c b/armsrc/start.c index a6503f1ea..b5947bdf3 100644 --- a/armsrc/start.c +++ b/armsrc/start.c @@ -77,4 +77,4 @@ void __attribute__((section(".startos"))) Vector(void) { AppMain(); } -#endif \ No newline at end of file +#endif diff --git a/armsrc/string.h b/armsrc/string.h index de8f3ac20..f6f094c48 100644 --- a/armsrc/string.h +++ b/armsrc/string.h @@ -24,4 +24,4 @@ char *strcat(char *dest, const char *src); void strreverse(char s[]); void itoa(int n, char s[]); -#endif /* __STRING_H */ \ No newline at end of file +#endif /* __STRING_H */ diff --git a/armsrc/ticks.h b/armsrc/ticks.h index 6e5e334f0..d24d2aac5 100644 --- a/armsrc/ticks.h +++ b/armsrc/ticks.h @@ -44,4 +44,4 @@ extern void WaitUS(uint16_t us); extern void WaitMS(uint16_t ms); extern void StopTicks(void); -#endif \ No newline at end of file +#endif diff --git a/client/cmdcrc.c b/client/cmdcrc.c index 1a17d1428..be74fc39a 100644 --- a/client/cmdcrc.c +++ b/client/cmdcrc.c @@ -483,4 +483,4 @@ int CmdrevengSearch(const char *Cmd) { if (!found) PrintAndLogEx(FAILED, "\nno matches found\n"); return 1; -} \ No newline at end of file +} diff --git a/client/cmdflashmem.h b/client/cmdflashmem.h index 0a56ebed4..099a4e3b1 100644 --- a/client/cmdflashmem.h +++ b/client/cmdflashmem.h @@ -42,4 +42,4 @@ extern int CmdFlashMemWipe(const char *Cmd); extern int CmdFlashMemInfo(const char *Cmd); #endif -#endif \ No newline at end of file +#endif diff --git a/client/cmdhf15.c b/client/cmdhf15.c index 2e784962c..f209f361d 100644 --- a/client/cmdhf15.c +++ b/client/cmdhf15.c @@ -1315,4 +1315,4 @@ int CmdHF15(const char *Cmd) { int CmdHF15Help(const char *Cmd) { CmdsHelp(CommandTable15); return 0; -} \ No newline at end of file +} diff --git a/client/cmdhfepa.c b/client/cmdhfepa.c index fce18f11b..0386155c1 100644 --- a/client/cmdhfepa.c +++ b/client/cmdhfepa.c @@ -176,4 +176,4 @@ int CmdHFEPA(const char *Cmd) { clearCommandBuffer(); CmdsParse(CommandTable, Cmd); return 0; -} \ No newline at end of file +} diff --git a/client/cmdhffelica.c b/client/cmdhffelica.c index 59ddc5d65..e06f133e3 100644 --- a/client/cmdhffelica.c +++ b/client/cmdhffelica.c @@ -609,4 +609,4 @@ int CmdHFFelica(const char *Cmd) { int CmdHelp(const char *Cmd) { CmdsHelp(CommandTable); return 0; -} \ No newline at end of file +} diff --git a/client/cmdhffido.h b/client/cmdhffido.h index 2460a170f..96f9153ed 100644 --- a/client/cmdhffido.h +++ b/client/cmdhffido.h @@ -24,4 +24,4 @@ extern int CmdHFFido(const char *Cmd); -#endif \ No newline at end of file +#endif diff --git a/client/cmdhflegic.c b/client/cmdhflegic.c index a509873da..db65447ac 100644 --- a/client/cmdhflegic.c +++ b/client/cmdhflegic.c @@ -1317,4 +1317,4 @@ int CmdHFLegic(const char *Cmd) { int CmdHelp(const char *Cmd) { CmdsHelp(CommandTable); return 0; -} \ No newline at end of file +} diff --git a/client/cmdhflist.c b/client/cmdhflist.c index 6bcfe0b20..3c1fb83bd 100644 --- a/client/cmdhflist.c +++ b/client/cmdhflist.c @@ -1251,4 +1251,4 @@ uint64_t GetCrypto1ProbableKey(TAuthData *ad) { crypto1_get_lfsr(revstate, &key); crypto1_destroy(revstate); return key; -} \ No newline at end of file +} diff --git a/client/cmdhfmfdesfire.h b/client/cmdhfmfdesfire.h index c29fd262a..cc5481b0e 100644 --- a/client/cmdhfmfdesfire.h +++ b/client/cmdhfmfdesfire.h @@ -2,4 +2,4 @@ static int CmdHelp(const char *Cmd); int CmdHF14AMfDESAuth(const char *Cmd); int CmdHFMFDesfire(const char *Cmd); -int CmdHelp(const char *Cmd); \ No newline at end of file +int CmdHelp(const char *Cmd); diff --git a/client/cmdhfmfp.h b/client/cmdhfmfp.h index a5cacb518..ed9d36b79 100644 --- a/client/cmdhfmfp.h +++ b/client/cmdhfmfp.h @@ -15,4 +15,4 @@ extern int CmdHFMFP(const char *Cmd); -#endif \ No newline at end of file +#endif diff --git a/client/cmdmain.c b/client/cmdmain.c index 608a0e668..5bbd689e1 100644 --- a/client/cmdmain.c +++ b/client/cmdmain.c @@ -74,4 +74,4 @@ int CmdRev(const char *Cmd) { //----------------------------------------------------------------------------- int CommandReceived(char *Cmd) { return CmdsParse(CommandTable, Cmd); -} \ No newline at end of file +} diff --git a/client/cmdscript.c b/client/cmdscript.c index 2e2ec5f53..e1a21ffc4 100644 --- a/client/cmdscript.c +++ b/client/cmdscript.c @@ -193,4 +193,4 @@ int CmdScript(const char *Cmd) { int CmdHelp(const char *Cmd) { PrintAndLogEx(NORMAL, "This is a feature to run Lua-scripts. You can place lua-scripts within the scripts/-folder. "); return 0; -} \ No newline at end of file +} diff --git a/client/cmdsmartcard.h b/client/cmdsmartcard.h index 14e79cd4e..2e4971bba 100644 --- a/client/cmdsmartcard.h +++ b/client/cmdsmartcard.h @@ -40,4 +40,4 @@ extern int usage_sm_raw(void); extern int usage_sm_reader(void); extern int usage_sm_info(void); extern int usage_sm_upgrade(void); -#endif \ No newline at end of file +#endif diff --git a/client/emv/emvjson.h b/client/emv/emvjson.h index d47109f7c..18326083f 100644 --- a/client/emv/emvjson.h +++ b/client/emv/emvjson.h @@ -38,4 +38,4 @@ extern int JsonLoadBufAsHex(json_t *elm, char *path, uint8_t *data, size_t maxbu extern bool ParamLoadFromJson(struct tlvdb *tlv); -#endif \ No newline at end of file +#endif diff --git a/client/hardnested/hardnested_tables.c b/client/hardnested/hardnested_tables.c index bc92e5f10..09de7f5d7 100644 --- a/client/hardnested/hardnested_tables.c +++ b/client/hardnested/hardnested_tables.c @@ -577,4 +577,4 @@ int main(int argc, char *argv[]) { free_part_sum_bitarrays(); return 0; -} \ No newline at end of file +} diff --git a/client/loclass/elite_crack.c b/client/loclass/elite_crack.c index 41be3d39c..038d8e475 100644 --- a/client/loclass/elite_crack.c +++ b/client/loclass/elite_crack.c @@ -692,4 +692,4 @@ int testElite() { errors += _test_iclass_key_permutation(); errors += _testBruteforce(); return errors; -} \ No newline at end of file +} diff --git a/client/lualibs/7816_error.lua b/client/lualibs/7816_error.lua index 038f668fb..15f4ef471 100644 --- a/client/lualibs/7816_error.lua +++ b/client/lualibs/7816_error.lua @@ -75,4 +75,4 @@ _errorcodes.tostring = function(command) end return ("Error, numeric or string argument expected, got : %s"):format(tostring(command)) end -return _errorcodes \ No newline at end of file +return _errorcodes diff --git a/client/lualibs/hf_reader.lua b/client/lualibs/hf_reader.lua index d0550a335..b99b521da 100644 --- a/client/lualibs/hf_reader.lua +++ b/client/lualibs/hf_reader.lua @@ -32,4 +32,4 @@ end return { waitForTag = waitForTag, -} \ No newline at end of file +} diff --git a/client/lualibs/precalc.lua b/client/lualibs/precalc.lua index 71d91c05a..7da08f006 100644 --- a/client/lualibs/precalc.lua +++ b/client/lualibs/precalc.lua @@ -91,4 +91,4 @@ local PreCalc = return list end, } -return PreCalc \ No newline at end of file +return PreCalc diff --git a/client/lualibs/read14b.lua b/client/lualibs/read14b.lua index 3711c02a3..2ee86c378 100644 --- a/client/lualibs/read14b.lua +++ b/client/lualibs/read14b.lua @@ -155,4 +155,4 @@ local library = { ISO14B_COMMAND = ISO14B_COMMAND, } -return library \ No newline at end of file +return library diff --git a/client/lualibs/taglib.lua b/client/lualibs/taglib.lua index 715a29487..0612ed2d3 100644 --- a/client/lualibs/taglib.lua +++ b/client/lualibs/taglib.lua @@ -121,4 +121,4 @@ return { return m[value] or "no tag-info available" end, -} \ No newline at end of file +} diff --git a/client/lualibs/utils.lua b/client/lualibs/utils.lua index 697e48b72..ed9874e40 100644 --- a/client/lualibs/utils.lua +++ b/client/lualibs/utils.lua @@ -427,4 +427,4 @@ local Utils = -- end } -return Utils \ No newline at end of file +return Utils diff --git a/client/mifare/mifarehost.h b/client/mifare/mifarehost.h index 1d9f0c3ab..626d2cd07 100644 --- a/client/mifare/mifarehost.h +++ b/client/mifare/mifarehost.h @@ -100,4 +100,4 @@ extern int detect_classic_prng(void); extern int detect_classic_nackbug(bool verbose); extern void detect_classic_magic(void); extern void mf_crypto1_decrypt(struct Crypto1State *pcs, uint8_t *data, int len, bool isEncrypted); -#endif \ No newline at end of file +#endif diff --git a/client/pm3_eml_mfd_test.py b/client/pm3_eml_mfd_test.py index 478a050df..171bad843 100644 --- a/client/pm3_eml_mfd_test.py +++ b/client/pm3_eml_mfd_test.py @@ -21,7 +21,7 @@ class TestEmlMfd(unittest.TestCase): ] def test_eml2mfd(self): self.three_argument_test(pm3_eml2mfd.main, self.EML2MFD_TESTCASES) - + def test_mfd2eml(self): self.three_argument_test(pm3_mfd2eml.main, imap(reversed, self.EML2MFD_TESTCASES), c14n=hex_c14n) diff --git a/client/reveng/preset.c b/client/reveng/preset.c index d5bdac2dd..2f305a285 100644 --- a/client/reveng/preset.c +++ b/client/reveng/preset.c @@ -939,4 +939,4 @@ static void munpack(model_t *dest, const struct mpreset *src) { dest->flags = src->flags; /* link to the name as it is static */ dest->name = (src->alias) ? src->alias->name : NULL; -} \ No newline at end of file +} diff --git a/client/scandir.h b/client/scandir.h index a41a13319..7155c5a79 100644 --- a/client/scandir.h +++ b/client/scandir.h @@ -19,4 +19,4 @@ extern int scandir(const char *dir, struct dirent ***namelist, int (*select)(con extern int alphasort(const struct dirent **a, const struct dirent **b); #endif // _WIN32 -#endif // SCANDIR_H__ \ No newline at end of file +#endif // SCANDIR_H__ diff --git a/client/scripting.c b/client/scripting.c index 14dc35774..719798177 100644 --- a/client/scripting.c +++ b/client/scripting.c @@ -776,4 +776,4 @@ int set_pm3_libraries(lua_State *L) { strcat(libraries_path, LUA_LIBRARIES_WILDCARD); setLuaPath(L, libraries_path); return 1; -} \ No newline at end of file +} diff --git a/client/scripts/Legic_clone.lua b/client/scripts/Legic_clone.lua index dcac7f323..21d756d0e 100644 --- a/client/scripts/Legic_clone.lua +++ b/client/scripts/Legic_clone.lua @@ -538,4 +538,4 @@ function main(args) end -- call main with arguments -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/brutesim.lua b/client/scripts/brutesim.lua index 9527d8970..a15cf6e60 100644 --- a/client/scripts/brutesim.lua +++ b/client/scripts/brutesim.lua @@ -297,4 +297,4 @@ local function main(args) core.console('hw ping') end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/calc_di.lua b/client/scripts/calc_di.lua index e0b587332..9a8c051a4 100644 --- a/client/scripts/calc_di.lua +++ b/client/scripts/calc_di.lua @@ -173,4 +173,4 @@ local function main(args) dumptofile( keys ) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/calc_ev1_it.lua b/client/scripts/calc_ev1_it.lua index c6070d20d..b4e995e96 100644 --- a/client/scripts/calc_ev1_it.lua +++ b/client/scripts/calc_ev1_it.lua @@ -175,4 +175,4 @@ local function main(args) print(string.format('PWD | %s', pwd)) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/calc_mizip.lua b/client/scripts/calc_mizip.lua index 42f13c578..8844f6d66 100644 --- a/client/scripts/calc_mizip.lua +++ b/client/scripts/calc_mizip.lua @@ -194,4 +194,4 @@ local function main(args) dumptofile( keys ) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/calypso.lua b/client/scripts/calypso.lua index 2b7252261..74de3cb9a 100644 --- a/client/scripts/calypso.lua +++ b/client/scripts/calypso.lua @@ -273,4 +273,4 @@ if "--test"==args then else -- Call the main main(args) -end \ No newline at end of file +end diff --git a/client/scripts/e.lua b/client/scripts/e.lua index 6b9d80364..1f9a14eb0 100644 --- a/client/scripts/e.lua +++ b/client/scripts/e.lua @@ -74,4 +74,4 @@ function main(args) end end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/emul2dump.lua b/client/scripts/emul2dump.lua index 04b9da12b..0cbc3a4c2 100644 --- a/client/scripts/emul2dump.lua +++ b/client/scripts/emul2dump.lua @@ -57,4 +57,4 @@ local function main(args) ExitMsg(("Wrote a BIN dump to the file %s"):format(filename)) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/emul2html.lua b/client/scripts/emul2html.lua index db76ec9c0..36230f8af 100644 --- a/client/scripts/emul2html.lua +++ b/client/scripts/emul2html.lua @@ -64,4 +64,4 @@ In the future, we may implement so that scripts are invoked directly into a 'main' function, instead of being executed blindly. For future compatibility, I have done so, but I invoke my main from here. --]] -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/formatMifare.lua b/client/scripts/formatMifare.lua index 90801b2a2..fe9cf32e5 100644 --- a/client/scripts/formatMifare.lua +++ b/client/scripts/formatMifare.lua @@ -213,4 +213,4 @@ local function main(args) end end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/hf_read.lua b/client/scripts/hf_read.lua index 7653e6e75..00238a67c 100644 --- a/client/scripts/hf_read.lua +++ b/client/scripts/hf_read.lua @@ -15,4 +15,4 @@ local function main(args) end return end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/htmldump.lua b/client/scripts/htmldump.lua index 40f3028b4..afd76abee 100644 --- a/client/scripts/htmldump.lua +++ b/client/scripts/htmldump.lua @@ -62,4 +62,4 @@ In the future, we may implement so that scripts are invoked directly into a 'main' function, instead of being executed blindly. For future compatibility, I have done so, but I invoke my main from here. --]] -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/lf_bulk.lua b/client/scripts/lf_bulk.lua index b4604bebb..dc59572f3 100644 --- a/client/scripts/lf_bulk.lua +++ b/client/scripts/lf_bulk.lua @@ -190,4 +190,4 @@ local function main(args) end end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/mfkeys.lua b/client/scripts/mfkeys.lua index 18078b822..ff739683d 100644 --- a/client/scripts/mfkeys.lua +++ b/client/scripts/mfkeys.lua @@ -272,4 +272,4 @@ local function main(args) print('mfkeys - Total execution time: '..os.difftime(end_time, start_time)..' sec') end -main( args) \ No newline at end of file +main( args) diff --git a/client/scripts/ndef_dump.lua b/client/scripts/ndef_dump.lua index 4a740d7e6..0bb597a52 100644 --- a/client/scripts/ndef_dump.lua +++ b/client/scripts/ndef_dump.lua @@ -244,4 +244,4 @@ local function main( args) prlog(string.format("Dumped data into %s", filename)) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/ntag_3d.lua b/client/scripts/ntag_3d.lua index 890f29d94..2f08aac85 100644 --- a/client/scripts/ntag_3d.lua +++ b/client/scripts/ntag_3d.lua @@ -380,4 +380,4 @@ local function main(args) write_tag(uid, t) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/parameters.lua b/client/scripts/parameters.lua index f51266f7f..4eb86446d 100644 --- a/client/scripts/parameters.lua +++ b/client/scripts/parameters.lua @@ -42,4 +42,4 @@ In the future, we may implement so that scripts are invoked directly into a 'main' function, instead of being executed blindly. For future compatibility, I have done so, but I invoke my main from here. --]] -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/test_t55x7_ask.lua b/client/scripts/test_t55x7_ask.lua index 3f224b28a..0e0d3d9e3 100644 --- a/client/scripts/test_t55x7_ask.lua +++ b/client/scripts/test_t55x7_ask.lua @@ -137,4 +137,4 @@ local function main(args) test() print( string.rep('--',20) ) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/test_t55x7_fsk.lua b/client/scripts/test_t55x7_fsk.lua index 9dbb1b6bb..492f71681 100644 --- a/client/scripts/test_t55x7_fsk.lua +++ b/client/scripts/test_t55x7_fsk.lua @@ -137,4 +137,4 @@ local function main(args) test(7) print( string.rep('--',20) ) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/tnp3dump.lua b/client/scripts/tnp3dump.lua index 2a5545497..f48abff6c 100644 --- a/client/scripts/tnp3dump.lua +++ b/client/scripts/tnp3dump.lua @@ -282,4 +282,4 @@ local function main(args) core.clearCommandBuffer() end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/tnp3sim.lua b/client/scripts/tnp3sim.lua index f64bebfce..ffda5a46d 100644 --- a/client/scripts/tnp3sim.lua +++ b/client/scripts/tnp3sim.lua @@ -486,4 +486,4 @@ local function main(args) print('The simulation is now prepared.\n --> run \"hf mf sim u '..uid..'\" <--') end end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/tracetest.lua b/client/scripts/tracetest.lua index 96d1f79c6..c3ddedf87 100644 --- a/client/scripts/tracetest.lua +++ b/client/scripts/tracetest.lua @@ -123,4 +123,4 @@ local function main(args) print( string.rep('--',20) ) end -main(args) \ No newline at end of file +main(args) diff --git a/client/scripts/ufodump.lua b/client/scripts/ufodump.lua index 67949fd94..f91949166 100644 --- a/client/scripts/ufodump.lua +++ b/client/scripts/ufodump.lua @@ -173,4 +173,4 @@ if "--test"==args then else -- Call the main main(args) -end \ No newline at end of file +end diff --git a/client/util.c b/client/util.c index 0b3211264..6efcb8efa 100644 --- a/client/util.c +++ b/client/util.c @@ -873,4 +873,4 @@ extern char *strmcopy(char *buf) { strcpy(str, buf); } return str; -} \ No newline at end of file +} diff --git a/client/util.h b/client/util.h index 9c68900e7..a96b3b71c 100644 --- a/client/util.h +++ b/client/util.h @@ -263,4 +263,4 @@ extern bool str_startswith(const char *s, const char *pre); // check for prefi extern void strcleanrn(char *buf, size_t len); extern void strcreplace(char *buf, size_t len, char from, char to); extern char *strmcopy(char *buf); -#endif \ No newline at end of file +#endif diff --git a/client/util_darwin.h b/client/util_darwin.h index 15af75404..d89b681f2 100644 --- a/client/util_darwin.h +++ b/client/util_darwin.h @@ -16,4 +16,4 @@ void enableAppNap(); void makeUnfocusable(); void makeFocusable(); -#endif \ No newline at end of file +#endif diff --git a/common/bucketsort.h b/common/bucketsort.h index 1de175ae5..0a56509c1 100644 --- a/common/bucketsort.h +++ b/common/bucketsort.h @@ -21,4 +21,4 @@ typedef struct bucket_info { void bucket_sort_intersect(uint32_t *const estart, uint32_t *const estop, uint32_t *const ostart, uint32_t *const ostop, bucket_info_t *bucket_info, bucket_array_t bucket); -#endif \ No newline at end of file +#endif diff --git a/common/cmd.c b/common/cmd.c index 5f42c669a..3b45c08ad 100644 --- a/common/cmd.c +++ b/common/cmd.c @@ -61,4 +61,4 @@ uint8_t cmd_send(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, void #endif return sendlen; -} \ No newline at end of file +} diff --git a/common/crc.c b/common/crc.c index 0846697de..2ad7609b1 100644 --- a/common/crc.c +++ b/common/crc.c @@ -123,4 +123,4 @@ uint32_t CRC8Legic(uint8_t *buff, size_t size) { for (int i = 0; i < size; ++i) crc_update2(&crc, buff[i], 8); return reflect8(crc_finish(&crc)); -} \ No newline at end of file +} diff --git a/common/crc16.h b/common/crc16.h index b88995a40..9a202f514 100644 --- a/common/crc16.h +++ b/common/crc16.h @@ -67,4 +67,4 @@ void reset_table(void); void generate_table(uint16_t polynomial, bool refin); uint16_t crc16_fast(uint8_t const *d, size_t n, uint16_t initval, bool refin, bool refout); -#endif \ No newline at end of file +#endif diff --git a/common/crc32.c b/common/crc32.c index 3ee102ce5..440bed910 100644 --- a/common/crc32.c +++ b/common/crc32.c @@ -29,4 +29,4 @@ void crc32_ex(const uint8_t *data, const size_t len, uint8_t *crc) { void crc32_append(uint8_t *data, const size_t len) { crc32_ex(data, len, data + len); -} \ No newline at end of file +} diff --git a/common/crc64.c b/common/crc64.c index 7d582da02..23360f6bd 100644 --- a/common/crc64.c +++ b/common/crc64.c @@ -80,4 +80,4 @@ void crc64(const uint8_t *data, const size_t len, uint64_t *crc) { } } -//suint8_t x = (c & 0xFF00000000000000 ) >> 56; \ No newline at end of file +//suint8_t x = (c & 0xFF00000000000000 ) >> 56; diff --git a/common/i2c.h b/common/i2c.h index 4254a73c3..df7f6698c 100644 --- a/common/i2c.h +++ b/common/i2c.h @@ -48,4 +48,4 @@ void SmartCardUpgrade(uint64_t arg0); void SmartCardSetBaud(uint64_t arg0); void SmartCardSetClock(uint64_t arg0); void I2C_print_status(void); -#endif \ No newline at end of file +#endif diff --git a/common/iso15693tools.c b/common/iso15693tools.c index 7b64c99d1..c8d413e76 100644 --- a/common/iso15693tools.c +++ b/common/iso15693tools.c @@ -22,4 +22,4 @@ char *Iso15693sprintUID(char *target, uint8_t *uid) { uid[3], uid[2], uid[1], uid[0] ); return target; -} \ No newline at end of file +} diff --git a/common/iso15693tools.h b/common/iso15693tools.h index d7a1b2bb5..26a7a87a7 100644 --- a/common/iso15693tools.h +++ b/common/iso15693tools.h @@ -123,4 +123,4 @@ static const int Iso15693FrameEOF[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }; -#endif \ No newline at end of file +#endif diff --git a/common/legic_prng.c b/common/legic_prng.c index fd5543cf7..5406161fc 100644 --- a/common/legic_prng.c +++ b/common/legic_prng.c @@ -62,4 +62,4 @@ uint32_t legic_prng_get_bits(uint8_t len) { legic_prng_forward(1); } return a; -} \ No newline at end of file +} diff --git a/common/prng.h b/common/prng.h index f160d6b30..b9f49c6b6 100644 --- a/common/prng.h +++ b/common/prng.h @@ -21,4 +21,4 @@ void burtle_init_mod(prng_ctx *x, uint32_t seed); void burtle_init(prng_ctx *x, uint32_t seed); uint32_t GetSimplePrng(uint32_t seed); -#endif /* __PRNG_H */ \ No newline at end of file +#endif /* __PRNG_H */ diff --git a/common/radixsort.c b/common/radixsort.c index 67f2910c1..83b26d609 100644 --- a/common/radixsort.c +++ b/common/radixsort.c @@ -96,4 +96,4 @@ uint64_t *radixSort(uint64_t *array, uint32_t size) { } free(cpy); return array; -} \ No newline at end of file +} diff --git a/common/radixsort.h b/common/radixsort.h index 29faf9825..41a036461 100644 --- a/common/radixsort.h +++ b/common/radixsort.h @@ -20,4 +20,4 @@ typedef union { } rscounts_t; uint64_t *radixSort(uint64_t *array, uint32_t size); -#endif // RADIXSORT_H__ \ No newline at end of file +#endif // RADIXSORT_H__ diff --git a/common/random.h b/common/random.h index 315794f8d..85c90dd38 100644 --- a/common/random.h +++ b/common/random.h @@ -18,4 +18,4 @@ void fast_prand(); void fast_prandEx(uint32_t seed); uint32_t prand(); -#endif \ No newline at end of file +#endif diff --git a/common/tea.h b/common/tea.h index 3a12a769d..43ac93428 100644 --- a/common/tea.h +++ b/common/tea.h @@ -15,4 +15,4 @@ #include void tea_encrypt(uint8_t *v, uint8_t *key); void tea_decrypt(uint8_t *v, uint8_t *key); -#endif /* __TEA_H */ \ No newline at end of file +#endif /* __TEA_H */ diff --git a/common/usart.c b/common/usart.c index 46e8517fc..869179091 100644 --- a/common/usart.c +++ b/common/usart.c @@ -140,4 +140,4 @@ void usart_init(void) { // re-enable receiver / transmitter pUS1->US_CR = (AT91C_US_RXEN | AT91C_US_TXEN); -} \ No newline at end of file +} diff --git a/common/usb_cdc.c b/common/usb_cdc.c index d70c8ee04..c871de241 100644 --- a/common/usb_cdc.c +++ b/common/usb_cdc.c @@ -949,4 +949,4 @@ void AT91F_CDC_Enumerate() { AT91F_USB_SendStall(pUdp); break; } -} \ No newline at end of file +} diff --git a/common/wiegand.c b/common/wiegand.c index 2da88b085..e319e1a08 100644 --- a/common/wiegand.c +++ b/common/wiegand.c @@ -236,4 +236,4 @@ void num_to_wiegand_bits(uint64_t oem, uint64_t fc, uint64_t cn, uint8_t *dest, default: break; } -} \ No newline at end of file +} diff --git a/include/common.h b/include/common.h index 2c3febc98..8bf8ab702 100644 --- a/include/common.h +++ b/include/common.h @@ -115,4 +115,4 @@ typedef struct { #ifdef __cplusplus } #endif -#endif \ No newline at end of file +#endif diff --git a/tools/Makefile b/tools/Makefile index 51a76677b..3b1dc1b0f 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -16,4 +16,4 @@ get_xorsearch: # Mingw # unzzip-big XORSearch_V1_11_2.zip # linux -# gunzip XORSearch_V1_11_2.zip \ No newline at end of file +# gunzip XORSearch_V1_11_2.zip diff --git a/tools/findbits_test.py b/tools/findbits_test.py index 4415ce726..db8dda8fa 100644 --- a/tools/findbits_test.py +++ b/tools/findbits_test.py @@ -65,4 +65,4 @@ class OutputBuffer(object): if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main() diff --git a/tools/mkversion.pl b/tools/mkversion.pl index 023c84c8b..ed5cea206 100644 --- a/tools/mkversion.pl +++ b/tools/mkversion.pl @@ -4,7 +4,7 @@ # Normally a couple of lines of bash would be enough (see openpcd project, original firmware by Harald Welte and Milosch Meriac) # but this will, at least in theory, also work on Windows with our current compile environment. # -- Henryk Plötz 2009-09-28 -# Modified april 2014 because of the move to github. +# Modified april 2014 because of the move to github. # --- Martin Holst Swende # Modified january 2016 to work with Travis-CI # --- iceman @@ -19,9 +19,9 @@ my $ctime; # GIT status 0 = dirty, 1 = clean , 2 = undecided my $clean = 2; -# Do we have acces to git command? +# Do we have acces to git command? ####### -# solves some bug on macos i.e: +# solves some bug on macos i.e: ## # perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c # /usr/bin/which: /usr/bin/which: cannot execute binary file diff --git a/uart/uart_win32.c b/uart/uart_win32.c index 0717a24cb..6107a564e 100644 --- a/uart/uart_win32.c +++ b/uart/uart_win32.c @@ -174,4 +174,4 @@ bool uart_send(const serial_port sp, const uint8_t *p_tx, const size_t len) { return WriteFile(((serial_port_windows *)sp)->hPort, p_tx, len, &txlen, NULL); } -#endif \ No newline at end of file +#endif