Reduce variables scopes
This commit is contained in:
parent
2033519b0c
commit
04ef5ca902
4 changed files with 8 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue