mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-20 23:36:31 +08:00
Removed unused variables, added implicitly used headers
This commit is contained in:
parent
2d4eae7617
commit
31b6e9af2b
|
@ -111,7 +111,7 @@ int getUID(uint8_t *buf)
|
|||
// uid[8] tag uid
|
||||
// returns description of the best match
|
||||
static char* getTagInfo(uint8_t *uid) {
|
||||
uint64_t myuid,mask,t;
|
||||
uint64_t myuid,mask;
|
||||
int i=0, best=-1;
|
||||
memcpy(&myuid,uid,sizeof(uint64_t));
|
||||
while (uidmapping[i].mask>0) {
|
||||
|
|
|
@ -259,15 +259,10 @@ int CmdHF14AMfDump1k(const char *Cmd)
|
|||
{
|
||||
int i, j;
|
||||
|
||||
uint8_t keyType = 0;
|
||||
uint8_t c[3][4];
|
||||
uint8_t keyA[16][6];
|
||||
uint8_t keyB[16][6];
|
||||
uint8_t rights[16][4];
|
||||
|
||||
uint8_t isOK = 0;
|
||||
uint8_t *data = NULL;
|
||||
|
||||
FILE *fin;
|
||||
FILE *fout;
|
||||
|
||||
|
|
|
@ -275,13 +275,12 @@ int CmdEM410xWatch(const char *Cmd)
|
|||
*/
|
||||
int CmdEM4x50Read(const char *Cmd)
|
||||
{
|
||||
int i, j, startblock, clock, skip, block, start, end, low, high;
|
||||
int i, j, startblock, skip, block, start, end, low, high;
|
||||
bool complete= false;
|
||||
int tmpbuff[MAX_GRAPH_TRACE_LEN / 64];
|
||||
char tmp[6];
|
||||
|
||||
high= low= 0;
|
||||
clock= 64;
|
||||
memset(tmpbuff, 0, MAX_GRAPH_TRACE_LEN / 64);
|
||||
|
||||
/* first get high and low values */
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "mifarehost.h"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue