From: dn337t@gmail.com Date: Mon, 14 May 2012 14:48:23 +0000 (+0000) Subject: Removed unused variables, added implicitly used headers X-Git-Tag: v1.0.0~224 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/31b6e9af2beb26d7e78ab5f085f79fbb350e8f90 Removed unused variables, added implicitly used headers --- diff --git a/client/cmdhf15.c b/client/cmdhf15.c index 886e5c51..4fce726d 100644 --- a/client/cmdhf15.c +++ b/client/cmdhf15.c @@ -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) { diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index cd50477d..1a29f871 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -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; diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index 3ca95a41..8d211a46 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -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 */ diff --git a/client/mifarehost.c b/client/mifarehost.c index f52fb602..394d2471 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -10,6 +10,7 @@ #include #include +#include #include "mifarehost.h"