refactor: remove positive error codes

This commit is contained in:
douniwan5788 committed 2024-09-04 22:50:26 +08:00
1 parent 28076af96d
commit 970c2d0999
3 files changed
+2 -11

No files matched your search

+1 -1
View File
@@ -283,7 +283,7 @@ static int CmdQuit(const char *Cmd) {
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
CLIParserFree(ctx);
return PM3_SQUIT;
return PM3_EFATAL;
}
static int CmdRev(const char *Cmd) {
-5
View File
@@ -574,11 +574,6 @@ check_script:
// exit or quit
if (mainret == PM3_EFATAL)
break;
if (mainret == PM3_SQUIT) {
// Normal quit, map to 0
mainret = PM3_SUCCESS;
break;
}
}
free(cmd);
cmd = NULL;