Fix compilation bug introduced in r137.
This commit is contained in:
parent
881ef6c319
commit
de537473a0
3 changed files with 9 additions and 9 deletions
|
@ -94,7 +94,7 @@ bool transmit_bytes(const byte_t* pbtTx, const size_t szTxLen)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_usage(void)
|
void print_usage(char* argv[])
|
||||||
{
|
{
|
||||||
printf("Usage: %s [OPTIONS]\n", argv[0]);
|
printf("Usage: %s [OPTIONS]\n", argv[0]);
|
||||||
printf("Options:\n");
|
printf("Options:\n");
|
||||||
|
@ -109,14 +109,14 @@ int main(int argc,char* argv[])
|
||||||
// Get commandline options
|
// Get commandline options
|
||||||
for (arg=1;arg<argc;arg++) {
|
for (arg=1;arg<argc;arg++) {
|
||||||
if (0 == strcmp(argv[arg], "-h")) {
|
if (0 == strcmp(argv[arg], "-h")) {
|
||||||
print_usage();
|
print_usage(argv);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (0 == strcmp(argv[arg], "-q")) {
|
} else if (0 == strcmp(argv[arg], "-q")) {
|
||||||
INFO("Quiet mode.");
|
INFO("Quiet mode.");
|
||||||
quiet_output = true;
|
quiet_output = true;
|
||||||
} else {
|
} else {
|
||||||
ERR("%s is not supported option.", argv[arg]);
|
ERR("%s is not supported option.", argv[arg]);
|
||||||
print_usage();
|
print_usage(argv);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ byte_t abtAtqa [2] = { 0x04,0x00 };
|
||||||
byte_t abtUidBcc [5] = { 0xDE,0xAD,0xBE,0xAF,0x62 };
|
byte_t abtUidBcc [5] = { 0xDE,0xAD,0xBE,0xAF,0x62 };
|
||||||
byte_t abtSak [9] = { 0x08,0xb6,0xdd };
|
byte_t abtSak [9] = { 0x08,0xb6,0xdd };
|
||||||
|
|
||||||
void print_usage(void)
|
void print_usage(char* argv[])
|
||||||
{
|
{
|
||||||
printf("Usage: %s [OPTIONS] [UID]\n", argv[0]);
|
printf("Usage: %s [OPTIONS] [UID]\n", argv[0]);
|
||||||
printf("Options:\n");
|
printf("Options:\n");
|
||||||
|
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
|
||||||
// Get commandline options
|
// Get commandline options
|
||||||
for (arg=1;arg<argc;arg++) {
|
for (arg=1;arg<argc;arg++) {
|
||||||
if (0 == strcmp(argv[arg], "-h")) {
|
if (0 == strcmp(argv[arg], "-h")) {
|
||||||
print_usage();
|
print_usage(argv);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (0 == strcmp(argv[arg], "-q")) {
|
} else if (0 == strcmp(argv[arg], "-q")) {
|
||||||
INFO("Quiet mode.");
|
INFO("Quiet mode.");
|
||||||
|
@ -74,7 +74,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ERR("%s is not supported option.", argv[arg]);
|
ERR("%s is not supported option.", argv[arg]);
|
||||||
print_usage();
|
print_usage(argv);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ static size_t szTagRxBits;
|
||||||
static dev_info* pdiReader;
|
static dev_info* pdiReader;
|
||||||
static dev_info* pdiTag;
|
static dev_info* pdiTag;
|
||||||
|
|
||||||
void print_usage(void)
|
void print_usage(char* argv[])
|
||||||
{
|
{
|
||||||
printf("Usage: %s [OPTIONS]\n", argv[0]);
|
printf("Usage: %s [OPTIONS]\n", argv[0]);
|
||||||
printf("Options:\n");
|
printf("Options:\n");
|
||||||
|
@ -51,14 +51,14 @@ int main(int argc,char* argv[])
|
||||||
// Get commandline options
|
// Get commandline options
|
||||||
for (arg=1;arg<argc;arg++) {
|
for (arg=1;arg<argc;arg++) {
|
||||||
if (0 == strcmp(argv[arg], "-h")) {
|
if (0 == strcmp(argv[arg], "-h")) {
|
||||||
print_usage();
|
print_usage(argv);
|
||||||
return 0;
|
return 0;
|
||||||
} else if (0 == strcmp(argv[arg], "-q")) {
|
} else if (0 == strcmp(argv[arg], "-q")) {
|
||||||
INFO("Quiet mode.");
|
INFO("Quiet mode.");
|
||||||
quiet_output = true;
|
quiet_output = true;
|
||||||
} else {
|
} else {
|
||||||
ERR("%s is not supported option.", argv[arg]);
|
ERR("%s is not supported option.", argv[arg]);
|
||||||
print_usage();
|
print_usage(argv);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue