Removed unused variables, added implicitly used headers

This commit is contained in:
dn337t@gmail.com 2012-05-14 14:48:23 +00:00
parent 2d4eae7617
commit 31b6e9af2b
4 changed files with 3 additions and 8 deletions

View file

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

View file

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

View file

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

View file

@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mifarehost.h"