propagate CmdsParse return value

This commit is contained in:
Philippe Teuwen
2019-04-19 00:47:51 +02:00
parent 38fc6e2290
commit 1b6a45ac17
46 changed files with 47 additions and 93 deletions
+1 -2
View File
@@ -925,6 +925,5 @@ static int CmdHelp(const char *Cmd) {
int CmdAnalyse(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -2147,7 +2147,6 @@ static int CmdHelp(const char *Cmd) {
int CmdData(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -127,8 +127,7 @@ static command_t CommandTable[] = {
int CmdHF(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int CmdHelp(const char *Cmd) {
+1 -2
View File
@@ -1156,8 +1156,7 @@ static int CmdHelp(const char *Cmd) {
int CmdHF14A(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int infoHF14A(bool verbose, bool do_nack_test) {
+1 -2
View File
@@ -1120,8 +1120,7 @@ static int CmdHelp(const char *Cmd) {
int CmdHF14B(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
// get and print all info known about any known 14b tag
+2 -3
View File
@@ -1293,7 +1293,7 @@ static int CmdHF15Restore(const char *Cmd) {
return 0;
}
static command_t CommandTable15[] = {
static command_t CommandTable[] = {
{"help", CmdHF15Help, 1, "This help"},
{"demod", CmdHF15Demod, 1, "Demodulate ISO15693 from tag"},
{"dump", CmdHF15Dump, 0, "Read all memory pages of an ISO15693 tag, save to file"},
@@ -1320,8 +1320,7 @@ static int CmdHF15Help(const char *Cmd) {
int CmdHF15(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable15, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
// used with 'hf search'
+1 -2
View File
@@ -178,6 +178,5 @@ static int CmdHelp(const char *Cmd) {
int CmdHFEPA(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -562,8 +562,7 @@ static int CmdHelp(const char *Cmd) {
int CmdHFFelica(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int readFelicaUid(bool verbose) {
+1 -2
View File
@@ -906,8 +906,7 @@ static command_t CommandTable[] = {
int CmdHFFido(const char *Cmd) {
(void)WaitForResponseTimeout(CMD_ACK, NULL, 100);
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int CmdHelp(const char *Cmd) {
+1 -2
View File
@@ -2454,8 +2454,7 @@ static int CmdHelp(const char *Cmd) {
int CmdHFiClass(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int readIclass(bool loop, bool verbose) {
+1 -2
View File
@@ -1311,8 +1311,7 @@ static int CmdHelp(const char *Cmd) {
int CmdHFLegic(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int readLegicUid(bool verbose) {
+1 -2
View File
@@ -3585,7 +3585,6 @@ static int CmdHelp(const char *Cmd) {
int CmdHFMF(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -659,7 +659,6 @@ static int CmdHelp(const char *Cmd) {
int CmdHFMFDes(const char *Cmd) {
// flush
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -241,6 +241,5 @@ static int CmdHelp(const char *Cmd) {
int CmdHFMFDesfire(const char *Cmd) {
// flush
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -862,7 +862,6 @@ static int CmdHelp(const char *Cmd) {
int CmdHFMFP(const char *Cmd) {
(void)WaitForResponseTimeout(CMD_ACK, NULL, 100);
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -2671,7 +2671,6 @@ static int CmdHelp(const char *Cmd) {
int CmdHFMFUltra(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
+1 -2
View File
@@ -525,8 +525,7 @@ static int CmdHelp(const char *Cmd) {
int CmdHFTopaz(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int readTopazUid(void) {
+1 -2
View File
@@ -1007,8 +1007,7 @@ static command_t CommandTable[] = {
int CmdLF(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int CmdHelp(const char *Cmd) {
+1 -2
View File
@@ -522,8 +522,7 @@ static int CmdHelp(const char *Cmd) {
int CmdLFAWID(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
//refactored by marshmellow
+1 -2
View File
@@ -118,8 +118,7 @@ static int CmdHelp(const char *Cmd) {
int CmdLFCOTAG(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
return CmdsParse(CommandTable, Cmd);
}
int demodCOTAG(void) {

Some files were not shown because too many files have changed in this diff Show More