mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
Reduce variables scopes
This commit is contained in:
@@ -184,7 +184,6 @@ static bool
|
||||
authenticate(uint32_t uiBlock)
|
||||
{
|
||||
mifare_cmd mc;
|
||||
uint32_t uiTrailerBlock;
|
||||
|
||||
// Set the authentication information (uid)
|
||||
memcpy(mp.mpa.abtAuthUid, nt.nti.nai.abtUid + nt.nti.nai.szUidLen - 4, 4);
|
||||
@@ -196,6 +195,7 @@ authenticate(uint32_t uiBlock)
|
||||
if (bUseKeyFile) {
|
||||
|
||||
// Locate the trailer (with the keys) used for this sector
|
||||
uint32_t uiTrailerBlock;
|
||||
uiTrailerBlock = get_trailer_block(uiBlock);
|
||||
|
||||
// Extract the right key from dump file
|
||||
|
||||
Reference in New Issue
Block a user