make style

This commit is contained in:
Philippe Teuwen
2019-08-30 10:45:52 +02:00
parent 99159b3cda
commit 2022df1068
12 changed files with 199 additions and 198 deletions

View File

@@ -543,7 +543,7 @@ int bruteforceFile(const char *filename, uint16_t keytable[]) {
size_t dumplen = 0;
uint8_t *dump = NULL;
if ( loadFile_safe(filename, "", (void**)&dump, &dumplen) != PM3_SUCCESS ) {
if (loadFile_safe(filename, "", (void **)&dump, &dumplen) != PM3_SUCCESS) {
return PM3_EFILE;
}

View File

@@ -655,19 +655,19 @@ static int doTestsWithKnownInputs() {
}
static bool readKeyFile(uint8_t* key, size_t keylen) {
static bool readKeyFile(uint8_t *key, size_t keylen) {
size_t len = 0;
uint8_t *keyptr = NULL;
if ( loadFile_safe("iclass_key.bin", "", (void**)&keyptr, &len) != PM3_SUCCESS ) {
uint8_t *keyptr = NULL;
if (loadFile_safe("iclass_key.bin", "", (void **)&keyptr, &len) != PM3_SUCCESS) {
return false;
}
if ( keylen != len ) {
if (keylen != len) {
return false;
}
memcpy(key, keyptr, keylen );
memcpy(key, keyptr, keylen);
return true;
}