Add missing EOF LF

This commit is contained in:
Philippe Teuwen
2019-03-12 00:12:26 +01:00
parent f205f9db87
commit 1b2601a48a
105 changed files with 107 additions and 107 deletions

View File

@@ -483,4 +483,4 @@ int CmdrevengSearch(const char *Cmd) {
if (!found) PrintAndLogEx(FAILED, "\nno matches found\n");
return 1;
}
}

View File

@@ -42,4 +42,4 @@ extern int CmdFlashMemWipe(const char *Cmd);
extern int CmdFlashMemInfo(const char *Cmd);
#endif
#endif
#endif

View File

@@ -1315,4 +1315,4 @@ int CmdHF15(const char *Cmd) {
int CmdHF15Help(const char *Cmd) {
CmdsHelp(CommandTable15);
return 0;
}
}

View File

@@ -176,4 +176,4 @@ int CmdHFEPA(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
}
}

View File

@@ -609,4 +609,4 @@ int CmdHFFelica(const char *Cmd) {
int CmdHelp(const char *Cmd) {
CmdsHelp(CommandTable);
return 0;
}
}

View File

@@ -24,4 +24,4 @@
extern int CmdHFFido(const char *Cmd);
#endif
#endif

View File

@@ -1317,4 +1317,4 @@ int CmdHFLegic(const char *Cmd) {
int CmdHelp(const char *Cmd) {
CmdsHelp(CommandTable);
return 0;
}
}

View File

@@ -1251,4 +1251,4 @@ uint64_t GetCrypto1ProbableKey(TAuthData *ad) {
crypto1_get_lfsr(revstate, &key);
crypto1_destroy(revstate);
return key;
}
}

View File

@@ -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);
int CmdHelp(const char *Cmd);

View File

@@ -15,4 +15,4 @@
extern int CmdHFMFP(const char *Cmd);
#endif
#endif

View File

@@ -74,4 +74,4 @@ int CmdRev(const char *Cmd) {
//-----------------------------------------------------------------------------
int CommandReceived(char *Cmd) {
return CmdsParse(CommandTable, Cmd);
}
}

View File

@@ -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;
}
}

View File

@@ -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
#endif

View File

@@ -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
#endif

View File

@@ -577,4 +577,4 @@ int main(int argc, char *argv[]) {
free_part_sum_bitarrays();
return 0;
}
}

View File

@@ -692,4 +692,4 @@ int testElite() {
errors += _test_iclass_key_permutation();
errors += _testBruteforce();
return errors;
}
}

View File

@@ -75,4 +75,4 @@ _errorcodes.tostring = function(command)
end
return ("Error, numeric or string argument expected, got : %s"):format(tostring(command))
end
return _errorcodes
return _errorcodes

View File

@@ -32,4 +32,4 @@ end
return {
waitForTag = waitForTag,
}
}

View File

@@ -91,4 +91,4 @@ local PreCalc =
return list
end,
}
return PreCalc
return PreCalc

View File

@@ -155,4 +155,4 @@ local library = {
ISO14B_COMMAND = ISO14B_COMMAND,
}
return library
return library

View File

@@ -121,4 +121,4 @@ return {
return m[value] or "no tag-info available"
end,
}
}

View File

@@ -427,4 +427,4 @@ local Utils =
-- end
}
return Utils
return Utils

View File

@@ -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
#endif

View File

@@ -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)

View File

@@ -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;
}
}

View File

@@ -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__
#endif // SCANDIR_H__

View File

@@ -776,4 +776,4 @@ int set_pm3_libraries(lua_State *L) {
strcat(libraries_path, LUA_LIBRARIES_WILDCARD);
setLuaPath(L, libraries_path);
return 1;
}
}

View File

@@ -538,4 +538,4 @@ function main(args)
end
-- call main with arguments
main(args)
main(args)

View File

@@ -297,4 +297,4 @@ local function main(args)
core.console('hw ping')
end
main(args)
main(args)

View File

@@ -173,4 +173,4 @@ local function main(args)
dumptofile( keys )
end
main(args)
main(args)

View File

@@ -175,4 +175,4 @@ local function main(args)
print(string.format('PWD | %s', pwd))
end
main(args)
main(args)

View File

@@ -194,4 +194,4 @@ local function main(args)
dumptofile( keys )
end
main(args)
main(args)

View File

@@ -273,4 +273,4 @@ if "--test"==args then
else
-- Call the main
main(args)
end
end

View File

@@ -74,4 +74,4 @@ function main(args)
end
end
main(args)
main(args)

View File

@@ -57,4 +57,4 @@ local function main(args)
ExitMsg(("Wrote a BIN dump to the file %s"):format(filename))
end
main(args)
main(args)

View File

@@ -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)
main(args)

View File

@@ -213,4 +213,4 @@ local function main(args)
end
end
main(args)
main(args)

View File

@@ -15,4 +15,4 @@ local function main(args)
end
return
end
main(args)
main(args)

View File

@@ -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)
main(args)

View File

@@ -190,4 +190,4 @@ local function main(args)
end
end
main(args)
main(args)

View File

@@ -272,4 +272,4 @@ local function main(args)
print('mfkeys - Total execution time: '..os.difftime(end_time, start_time)..' sec')
end
main( args)
main( args)

View File

@@ -244,4 +244,4 @@ local function main( args)
prlog(string.format("Dumped data into %s", filename))
end
main(args)
main(args)

View File

@@ -380,4 +380,4 @@ local function main(args)
write_tag(uid, t)
end
main(args)
main(args)

View File

@@ -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)
main(args)

View File

@@ -137,4 +137,4 @@ local function main(args)
test()
print( string.rep('--',20) )
end
main(args)
main(args)

View File

@@ -137,4 +137,4 @@ local function main(args)
test(7)
print( string.rep('--',20) )
end
main(args)
main(args)

View File

@@ -282,4 +282,4 @@ local function main(args)
core.clearCommandBuffer()
end
main(args)
main(args)

View File

@@ -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)
main(args)

View File

@@ -123,4 +123,4 @@ local function main(args)
print( string.rep('--',20) )
end
main(args)
main(args)

View File

@@ -173,4 +173,4 @@ if "--test"==args then
else
-- Call the main
main(args)
end
end

View File

@@ -873,4 +873,4 @@ extern char *strmcopy(char *buf) {
strcpy(str, buf);
}
return str;
}
}

View File

@@ -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
#endif

View File

@@ -16,4 +16,4 @@ void enableAppNap();
void makeUnfocusable();
void makeFocusable();
#endif
#endif