Reduce variables scopes

This commit is contained in:
Philippe Teuwen 2017-02-18 20:13:53 +01:00
parent 2033519b0c
commit 04ef5ca902
4 changed files with 8 additions and 9 deletions

View file

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