fixed windows compiling issues

This commit is contained in:
Roel Verdult 2010-01-13 16:23:06 +00:00
parent f8b3ba9ab6
commit 15981b743e
7 changed files with 35 additions and 22 deletions

View file

@ -45,7 +45,7 @@ static byte_t abtFelica[5] = { 0x00, 0xff, 0xff, 0x00, 0x00 };
int main(int argc, const char* argv[])
{
size_t szFound;
int i;
size_t i;
nfc_target_info_t nti;
nfc_device_desc_t *pnddDevices;

View file

@ -338,6 +338,7 @@ int main(int argc, const char* argv[])
byte_t* pbtUID;
FILE* pfKeys = NULL;
FILE* pfDump = NULL;
const char* command = argv[1];
if(argc < 2)
{
@ -345,7 +346,6 @@ int main(int argc, const char* argv[])
exit(EXIT_FAILURE);
}
const char* command = argv[1];
if(strcmp(command, "r") == 0)
{
atAction = ACTION_READ;