mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
propagate CmdsParse return value
This commit is contained in:
+1
-2
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
@@ -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) {
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Reference in New Issue
Block a user